Remove theoretical qt4 support for gui projects (#963)
Update readme instruction to install and build with qt5 only. Remove version check for qt4.
This commit is contained in:
parent
b73f5fec7d
commit
6c2ed41e12
|
@ -5,11 +5,12 @@ with cppcheck and shows list of found errors.
|
||||||
|
|
||||||
Running
|
Running
|
||||||
-------
|
-------
|
||||||
You need Qt4 or Qt5 libraries installed in your system. Packages/files to install
|
You need Qt5 libraries installed in your system. Packages/files to install
|
||||||
depends on your operating system:
|
depends on your operating system:
|
||||||
- Windows: download Qt from http://www.qt.io/download/
|
- Windows: download Qt from http://www.qt.io/download/
|
||||||
- Linux: install Qt using your package manager, look for packages having Qt
|
- Linux: install Qt using your package manager, look for packages having Qt
|
||||||
in their name, e.g. for Ubuntu install libqt4-core and libqt4-gui.
|
in their name, e.g. for Ubuntu install libqt5core5a, libqt5gui5, libqt5widgets5
|
||||||
|
and libqt5printsupport5.
|
||||||
|
|
||||||
Compiling
|
Compiling
|
||||||
---------
|
---------
|
||||||
|
@ -26,11 +27,7 @@ Windows:
|
||||||
Linux:
|
Linux:
|
||||||
- Install Qt development packages (make sure qmake -tool gets installed!). The
|
- Install Qt development packages (make sure qmake -tool gets installed!). The
|
||||||
names depend on distribution, but e.g. for Ubuntu the needed packages are:
|
names depend on distribution, but e.g. for Ubuntu the needed packages are:
|
||||||
* libqt4-core
|
* qt5-default
|
||||||
* libqt4-gui
|
|
||||||
* libqt4-dev
|
|
||||||
* qt4-dev-tools
|
|
||||||
* qt4-qmake
|
|
||||||
|
|
||||||
After you have needed libraries and tools installed, open command
|
After you have needed libraries and tools installed, open command
|
||||||
prompt/console, go to gui directory and run command:
|
prompt/console, go to gui directory and run command:
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
CONFIG += qtestlib
|
Qt += testlib
|
||||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
QT += widgets
|
||||||
QT += widgets # In Qt 5 widgets are in separate module
|
QT += printsupport
|
||||||
QT += printsupport # In Qt 5 QPrinter/QPrintDialog are in separate module
|
|
||||||
}
|
|
||||||
INCLUDEPATH += $${PWD}/..
|
INCLUDEPATH += $${PWD}/..
|
||||||
|
|
||||||
LIBS += -L$$PWD/../../externals
|
LIBS += -L$$PWD/../../externals
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#lessThan(QT_MAJOR_VERSION, 5): error(requires >= Qt 5 (You used: $$QT_VERSION))
|
||||||
|
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue