0% found this document useful (0 votes)
60 views

Getting Started With QT

Getting started with Qt requires: 1. Downloading Qt from their website and installing it along with a compiler like Visual Studio. 2. Running Qt Creator and opening the .pro project file to compile and run, or using Visual Studio by opening the .vcproj file, configuring include directories and libraries, and compiling and running from there. 3. If using Visual Studio, the path may need updating to include Qt binaries, and a Visual Studio Qt add-in can help with editing UIs though it is not necessary.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Getting Started With QT

Getting started with Qt requires: 1. Downloading Qt from their website and installing it along with a compiler like Visual Studio. 2. Running Qt Creator and opening the .pro project file to compile and run, or using Visual Studio by opening the .vcproj file, configuring include directories and libraries, and compiling and running from there. 3. If using Visual Studio, the path may need updating to include Qt binaries, and a Visual Studio Qt add-in can help with editing UIs though it is not necessary.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Getting started with Qt

1. Download Qt (LGPL license) from http://qt-project.org/downloads. If you have other compiler


installed already, you should download the one that matches your system (the assignment
project should be compatible with VS 2010 or 2012 version with opengl). If not, you need to
download software that provides a compiler for Qt creator.
2. Install 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.

Using Visual Studios editor and compiler:


1. Run Visual Studio
a. Select Open Project/Solution from File menu.
b. Select the file ImgFilter.vcproj
c. Right click on the ImgFilter project and select Properties
d. Select Configuration Properties -> C/C++ -> General
e. Update the directories under Additional Include Directories with Qt in the name
according to where you installed Qt.
f. In the same window select Configuration Properties -> Linker.

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):

m. And the modules should selected like this:

You might also like