Problem with Qt Creator editor after downgrading Qt Libraries
-
wrote on 26 Jun 2013, 23:43 last edited by
I needed to downgrade my project from Qt5 to Qt4 (4.8.4 exactly), and now i got a little problem with editor.
I have found and installed all that Qt4 needs (MinGW 4.4 and Qt 4.8.4 from qt-project download page). Then i configured Qt Creator to build it (paths to compilator, qmake, sysroot of libraries etc). Compilation of project works like a charm.
The problem is - editor can't see any files from Qt library. For example:
QPushButton: No file or directoryI tried to manually set up path to includes, but it makes absolutely no diffrence
INCLUDEPATH += "C:/Qt/4.8.4/include"My pro file looks like that:
@QT += core guiTARGET = SudokuComplex
TEMPLATE = appINCLUDEPATH += "C:/Qt/4.8.4/include"
#my project files@
I'm looking for solution to that problem. I'm using Qt Creator 2.7.0 that has been packed with Qt 5.0.2 (so it has its default configuration). Is there any way to set path to Qt Libraries to an editor?
-
wrote on 27 Jun 2013, 06:27 last edited by
Are you cross-compiling? According to this page:
http://qt-project.org/doc/qtcreator-2.7/creator-targets.html
you should leave sysroot blank unless you are cross-compiling. Maybe that will solve your problems. Also I don't think you need this line in your pro file
INCLUDEPATH += "C:/Qt/4.8.4/include"
-
wrote on 27 Jun 2013, 08:21 last edited by
Removing sysroot helped. Thx!
3/3