QT installation and use vs2015

Qt5.7.0 download the installation package (qt-windows-opensource) and Qt plugin (Visual Studio Add-in)

QT Software Download: 
http://download.qt.io/archive/qt/ 
QT plugin: 
http://download.qt.io/development_releases/vsaddin/

  

After the installation is complete Visual Studio Add-in, Visual Studio will be a corresponding Qt options!

qt installation tutorial:

QT Getting Started Installation Guide + helloworld

Configure the development environment

Select: QT VS Tools-> Qt Options-> Add, configure Qt development environment.

Here selected in accordance with the installation path Qt, Path is: E: \ VS2015Opencv \ qt \ 5.7.0 \ 5.7 \ msvc2015_64

 

New Qt Project

1. Select: File -> New -> Project -> Search "QT" -> Qt GUI Application, enter the name of the project, the next step ... be new.

 

2, "next" Next

3. Select the dependent modules: the most basic QtCore, QtGui, QtWidgets some audio / video, network, database, XML, OpenGl related modules, need to use a direct check can be.

4, finish (after specific settings have the opportunity to write)

5, compile and run, select: Debug -> Start execution or Ctrl + F5.

 

Configuration environment variable

If the environment variable is not configured, then locate the executable program in the project directory, run directly * .dll missing error message will appear.

Solution:

(1) Right Computer -> Properties -> Advanced System Settings -> Advanced -> Environment Variables, add the environment variable (recommended)

Reference herein: VS2015 + + OpenCV3.2 QT software / plug (QT Part 1) --- OpenCV to scratch the image (object face +) identifying a series of

Guess you like

Origin www.cnblogs.com/fcfc940503/p/11410705.html