(C++) Qt Creator project type

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) Qt Qt Creator project type

 

The Qt Creator project type is the type of Qt Creator project.

 

There are multiple project types for desktop applications:

 

 

 

 

 

 

Determining the project type

 

There are multiple ways to determine the project type:

 

 

 

 

Determining the project type: select the project type

 

When creating a new project, the project type can be selected in the 'New Project' screen:

 

Selecting a project type only lets Qt Creator help in writing a project file. This project file can always be modified to change the project type.

 

 

 

 

 

Determining the project type: modify the project file

 

The project file determines the project type.

 

The project file of a console application:

 


#------------------------------------------------- # # Project created by QtCreator 2011-01-14T13:36:30 # #------------------------------------------------- QT       += core QT       -= gui TARGET = CppConsoleApplication CONFIG   += console CONFIG   -= app_bundle TEMPLATE = app SOURCES += main.cpp

 

The project file of a GUI application:

 


#------------------------------------------------- # # Project created by QtCreator 2011-01-14T13:37:45 # #------------------------------------------------- QT       += core gui TARGET = CppGuiApplication TEMPLATE = app SOURCES += main.cpp\         mainwindow.cpp HEADERS  += mainwindow.h FORMS    += mainwindow.ui