Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
When setting up a Qt project, you need to select required modules in the select required modules dialog.
The modules supplied with Qt Creator 1.3.1 are:
- QtCore
- QtGui
- QtNetwork
- QtOpenFL
- QtSql
- QtScript
- QtScriptTools
- QtSvg
- QtWebKit
- QtXml
- QtXmlPatterns
- Phonon
- QtMultimedia
- Qt3Support
- QtTest
- QtDBus
Which modules were selected is stored in the project file with the QT parameter. Below some project files are shown with different module combinations.
Project file of a Qt4 console application with no modules selected
#-------------------------------------------------
#
# Project created by QtCreator 2010-05-01T10:23:29
#
#-------------------------------------------------
QT -= core gui
TARGET = MyProjectName
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
|
Note that the modules QtCore and QtGui need to be removed explicitly.
Project file of a Qt4 console application with only the QtCore module selected
#-------------------------------------------------
#
# Project created by QtCreator 2010-05-01T10:26:31
#
#-------------------------------------------------
QT -= gui
TARGET = MyProjectName
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
|
Note that the module QtGui need to be removed explicitly.
Project file of a Qt4 console application with only QtCore and QtGui modules selected
#-------------------------------------------------
#
# Project created by QtCreator 2010-05-01T10:27:59
#
#-------------------------------------------------
TARGET = MyProjectName
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
|
Note that no module need to be added explicitly.
Project file of a Qt4 console application with all modules selected
#-------------------------------------------------
#
# Project created by QtCreator 2010-05-01T10:14:58
#
#-------------------------------------------------
QT += network opengl sql script scripttools svg webkit xml xmlpatterns phonon multimedia qt3support testlib dbus
TARGET = MyProjectName
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
|
Note that the modules QtCore and QtGui need not to be added explicitly.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
