Getting Started With QT
Getting Started With QT
Using Qts editor and compiler (easier and more platform friendly):
3. Run Qt Creator
a. By double clicking the .pro file.
b. Or select Open file or project from File menu. Select the file ImgFilter.pro
c. Click Configure Project.
d. Click on the Sources folder. You should see a file called Project1.cpp. This is the only
file you should need to edit.
e. To compile click on the green play button at the bottom left of window.
f. You can select between debug and release builds above the green play button.
g. Update the directory in Additional Library Directories according to where you installed
Qt and add the libraries.
h. Compile and Run.
i. If it complains about not finding Qts dlls when running, you should update your
systems path variable to include Qts bin directory. To update the path variable,
type environment into the window search box and select Edit the systems
environment variables. Press the Environment Variable button and find path in
the second list box.
j. Qt also has a VS add-in that is nice for editing UIs. This isnt necessary for the
assignment, but its pretty handy to edit Qt setting. You can find it at the same
download page. Visual Studio Add-in 1.2.2 for Qt5 should work. After installation you
will find a Qt tab in your VS environment, and sometimes you can resolve the setting
issue by right clicking on your project to convert your project into Qt add-in project.
k. You shouldnt have to do this but just in case. If youd like to convert a Qt project to a
Visual Studio project use the following command qmake -tp vc test.pro. This will
create a file test.vcproj.
l. If it complains about MOC/UIC not found, make sure the Qt Project Settings look like
this (disregard the version I used here, the project is compatible with Qt up to 5.2):