Sun, 11 Aug 2013 13:33:57 +0300
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
0 | 1 | TARGET = ../zandemo |
2 | DEPENDPATH += . | |
3 | INCLUDEPATH += . | |
4 | # RC_FILE = ../ldforge.rc | |
5 | # RESOURCES = ../ldforge.qrc | |
6 | RCC_DIR = ./build/ | |
7 | OBJECTS_DIR = ./build/ | |
8 | MOC_DIR = ./build/ | |
9 | RCC_DIR = ./build/ | |
10 | SOURCES = *.cpp | |
11 | HEADERS = *.h | |
1 | 12 | FORMS = ui/*.ui |
16
a8c78391e414
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
15
diff
changeset
|
13 | QMAKE_CXXFLAGS += -std=c++0x |
a8c78391e414
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
15
diff
changeset
|
14 | |
a8c78391e414
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
15
diff
changeset
|
15 | # The widgets are separated into a different module in Qt5, so we need to add |
a8c78391e414
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
15
diff
changeset
|
16 | # it here. Doing so under Qt4 just results in a warning, though. |
a8c78391e414
Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
15
diff
changeset
|
17 | greaterThan (QT_MAJOR_VERSION, 4): QT += widgets |