Engineer999
Engineer999

Reputation: 3955

Building QT with Visual Studio

I know there have been a few questions before regarding this, but not too much up to date.

I am developing a project with Visual Studio 2015 express edition and I wish to add a GUI to my project via QT.

The latest version of QT (5.8.0) has a VS 2015 version, so I assume it is compiled using Visual Studio instead of MinGw.

Sorry if this is a very noob question. I have no experience with QT, but how do I then integrate my QT project into my VS project, do I build the GUI code first in QT?

If I will create a GUI using the .ui file in QT and then generate the source code for this, can I just copy the source code to my VS Project. I assume I have to configure the project file in VS as how will VS know where to find the dlls and header files for QT? Thanks in advance

Upvotes: 1

Views: 2961

Answers (1)

deW1
deW1

Reputation: 5660

You need the VS Tools for Qt. They work with >= Visual Studio 2013 Community Edition.

You can get them here and all information about how to use them.

Qt VS Tools integrate the Qt development tools into Microsoft Visual Studio 2013, and later. This enables developers to use the standard Windows development environment without having to worry about Qt-related build steps or tools.

The main features of Qt VS Tools are:

  • Wizards for creating new Qt projects and classes.
  • Automated build setup for the Meta-Object Compiler (moc), User Interface Compiler (uic), and Resource Compiler (rcc).
  • Import and export of Qt project files (.pro) and project include files (.pri). *Automated conversion of a Qt VS Tools project to a qmake project, or the other way around.
  • Integrated Qt resource management.
  • Integrated Qt documentation.
  • Debugging extensions for Qt data types.

Upvotes: 4

Related Questions