Difference between revisions of "Install and configure Qt with OpenCV"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
{ | { | ||
QCoreApplication a(argc, argv); | QCoreApplication a(argc, argv); | ||
− | |||
qDebug() << "Hello World"; | qDebug() << "Hello World"; | ||
− | |||
return a.exec(); | return a.exec(); | ||
} | } |
Revision as of 09:22, 18 August 2019
Install Qt with OpenCV (Windows 10)
Download and install the file
qt-unified-windows-x86-3.1.1-online.exe
During installation (or you can restart the installation wizard from the Control Panel - Programs and Functionalities, select the following:
MinGW 7.3.0 64 bit Qt 5.13.0 64 bit
To test the environment, go to File - New File or Project, then select 'Qt Console Application'. Give it a name, and leave the default build System 'qmake'.
In the next screen, deselect the default Kit, and instead, select the previously installed MinGW 7.3.0 64 bit.
Then, modify the main.cpp file in order to have this:
#include <QCoreApplication> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug() << "Hello World"; return a.exec(); }