2013-05-20

Slitaz -- qtfm/Qt5

qtfm

5.8 5-May 2013
- added support for Qt5 (application can be compiled with both Qt4 or Qt5)

# Include widgets in QT 5
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

svn checkout http://qtfm.googlecode.com/svn/trunk/


Error QApplication: no such file or directory


For QT 5

Step1: .pro (in pro file, add these 2 lines)

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Step2:

main.cpp (in main.cpp)

replace code: #include <QtGui/QApplication>
with: #include <QApplication>