The files in this repository are useful to compile QT UI form files, and run QT Meta Object Compiler on your header files containing QObject
s.
First you need to put all the files in this repository on a sub-folder of your choice. Please also ensure that you have a QT_DIR
environment variable (or user macro) that points to your QT directory.
Before using for the first time on a project, you need to do the following steps:
- Right click on a project, select Build dependencies --> Build customizations.
- Click on Find existing and select the
qt.targets
file.
To compile a form file, add it to your project and then:
- Right-click on the form file and select Properties
- Under Item type choose Qt UIC
- The output will be, by default, compiled to
$(INTDIR)\uic\FILE.EXT.h
. You can#include
this file in your code and use it.
To run QT MOC on your header file:
- Right click on the header file and select Properties
- Under Item type choose Qt MOC