Linking Qt Creator to Qt5
I'm attempting to use Qt Creator (2.4.0-rc) with Qt5.
I have successfully downloaded Qt5 from the Git repository and compiled Qt5 without any errors.
In Qt Creator --> Preferences --> Build & Run, I have added path to "qmake" for Qt 5.0.0 under the "Qt Versions" tab.
After creating a new project (or opening an existing project), Qt Creator cannot locate Qt5 libs/headers.
Example: Attempting to use "#include <QtGui/QApplication>" results in a "No such file or directory" message on hover.
I obviously need to point Qt Creator to the ../qt5/qtbase/lib folder (which contains the QtGui module, among others), but I cannot discern how/were this is done.
Can anyone point me in the right direction?
[OS X 10.7.2]
the easiest way is to install Qt Creator inside your Qt5 directory and then set lib and include env variables path to Qt5 directories using “sudo vi /etc/launchd.conf” on terminal.
The header you mention does not exist in Qt5. There are some source incompatible changes in Qt5.
Instead of "#include <QtGui/QApplication>" try "#include <QtWidgets/QApplication>" or QCoreApplication (sorry for no details, it's been a while since I tinkered with Qt5 last time, I simply don't remember the exact one).