qt-creator

Linking OpenCV to Qt Creator

不羁的心 提交于 2021-02-17 03:27:27
问题 I'm trying to use opencv 4 in QT creator, I'm working on Mac but I can't be able to link the library, I always have a error like on picture 2. please help me, I'm really hopeless. 回答1: First of all be sure you installed OpenCV correctly and working fine. You can check OpenCV exist or not by: pkg-config --modversion opencv It depends how you installed OpenCV but linking OpenCV libraries and flags to Qt is simply like adding these two line to your .pro file: INCLUDEPATH += /usr/local/include

How to make Cmake find tesseract library in Windows (Findtesseract.cmake)?

微笑、不失礼 提交于 2021-02-11 14:31:22
问题 I installed, in Windows, Tesseract, using "Windows Installer made with MinGW-w64 from UB Mannheim" from here, and added to my CMakeLists.txt: find_package(Tesseract REQUIRED) but I get CMake Error at CMakeLists.txt:14 (find_package): By not providing "FindTesseract.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Tesseract", but CMake did not find one. Could not find a package configuration file provided by "Tesseract" (requested

Deploy a Qt project on linux

柔情痞子 提交于 2021-02-11 06:17:42
问题 This may be a noob question, but I have been stuck trying to work out how to statically build my qt project on linux. I tried doing what it said on http://doc.qt.io/qt-5/linux-deployment.html , but I do not understand the 1st step. When I cd to the location of my qt project and run cd /path/to/Qt ./configure -static -prefix /path/to/Qt < otherparameters > make it says no such file or directory. Am I misunderstanding what paths I need to use? I want to make my qt project a stand alone

Qt Creator: community vs enterprise

喜欢而已 提交于 2021-02-10 18:40:54
问题 I downloaded and installed two versions of Qt, one is 5.9.4 and the other is 5.11.2. On operating system, one is shown with Community tag and the other with Enterprise tag. I wonder what the difference is: To clarify, I think I downloaded open-source version of Qt 5.11.2, but it is tagged as enterprise. 回答1: Qt Creator Commercial Features: You can use the following Qt Creator features if you have the appropriate Qt license. Performance Analyzer Browsing ISO 7000 Icons in the Design mode

Qt Creator: community vs enterprise

家住魔仙堡 提交于 2021-02-10 18:39:05
问题 I downloaded and installed two versions of Qt, one is 5.9.4 and the other is 5.11.2. On operating system, one is shown with Community tag and the other with Enterprise tag. I wonder what the difference is: To clarify, I think I downloaded open-source version of Qt 5.11.2, but it is tagged as enterprise. 回答1: Qt Creator Commercial Features: You can use the following Qt Creator features if you have the appropriate Qt license. Performance Analyzer Browsing ISO 7000 Icons in the Design mode

c++ error: :-1: error: symbol(s) not found for architecture x86_64 - in Qt-Creator

给你一囗甜甜゛ 提交于 2021-02-08 10:18:42
问题 i'm working on an exercise at uni and every time i try to compile the main.cpp i got always the same error. actor.h: class Actor { public: Actor(); Actor(double x0, double y0); void move(); double pos_x(); double pos_y(); static const int ARENA_W = 500; static const int ARENA_H = 500; }; plane.h (subclass of actor): class Plane:Actor { public: Plane(); Plane(double x0, double y0); void move(); double pos_x(); double pos_y(); //int dx = 5; static const int W = 50; static const int H = 20;

use qtcreator with gnu g++4.8 in mac os x

瘦欲@ 提交于 2021-02-08 03:07:32
问题 I would like to set g++4.8 as the c++ compiler with qt creator. I am in a OSX 10.8, QtCreator 2.8.0, and I have installed g++4.8 via homebrew. I have setted the g++4.8 as the compiler: if I go in Projects > Manage Kits I have the GCC kit as default, and manually inserted a compiler called GCC 4.8, with compiler path /usr/local/Cellar/gcc48/4.8.1/bin/g++-4.8 . You can see it in the screenshots below. I also have /usr/local/Cellar/gcc48/4.8.1/bin in the Build Enviroment > PATH. But, if I add

Vertical QToolBar from MainWindow

不想你离开。 提交于 2021-02-07 21:57:25
问题 What I want: http://puu.sh/3oUjh.jpg What I have: http://puu.sh/3oUnI.png The toolbar is made in mainwindow.ui, ive tried ui->_toolbar->setLayoutDirection(Qt::LeftToolBarArea); But I get this error: no matching function for call to 'QToolBar::setLayoutDirection(Qt::ToolBarArea)' 回答1: You can use QToolBar::orientation property: ui->myToolbar->setOrientation(Qt::Vertical); You can also use QMainWindow::addToolBar : addToolBar(Qt::LeftToolBarArea, ui->myToolbar); Note that by default the user is

Creating a resource file to use it in Qt Designer

瘦欲@ 提交于 2021-02-07 12:35:42
问题 I want to add a background image to a widget and thus I need a resource file but I am not able to create it in Qt Designer. Here is what I did: From the widget I go to the resources browser and click on the "add new file" button then a new window pops up. I am asked to point to the .qrc file but this file does not exist and I don't know how to create it. I googled and found that .qrc files are created using Qt Creator. Can't I create a .qrc file in Qt Designer ? Do I need to use Qt Creator to

Build a 3rd party library from source within an existing Qt project

孤街浪徒 提交于 2021-02-06 11:09:45
问题 My project requires a version of zlib that isn't present on all target machines, so I want to build zlib from source in my project. Then when I make my project, it should first build zlib so it can be linked to when compiling my project. One complication is that zlib requires configure to be run before make can be run. I'm not even sure where to start here. Is there functionality built in to Qt Creator for importing 3rd party library source code like this, or do I need to code out a custom