Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Wrong QT_VERSION define dedected within Qt Creator

$
0
0
Hey, I use cmake files to build my Projects and have Qt 4.8 , Qt 5.1 and Qt 5.2 installed Qt 4.8 where installed through the package manager (yum). However, I use Qt 5.2 in my current Project and can compile it, but when I add a new Form file with .cpp and .hpp file, Qt creator adds the following line in the .hpp file. #if QT_VERSION >= 0x050000 #include <QtWidgets/QDockWidget> #else #include <QtGui/QDockWidget> #endif If I leave it that way my program crashes, because the define QT_VERSION is from the system qglobal.h file which is Qt version 4.8. But the project is setup for Qt version 5.2. Has anybody an idea why this happens? Thanks in advance, chris

Viewing all articles
Browse latest Browse all 13965

Trending Articles