Creator can’t find QGraphicsView includes
I just installed Qt Creator 2.0.0 built June 21, 2010, on to windows from the binary installer.
Trying to play around with QGraphics view, but none of these includes are found when compiling,
nor found by the Creator intellisence facility.
I found the includes in c:/Qt/2010.04/qt/include/Qt/
but why can’t Qt Creator find or the compiler find them?
You should first try to clean your build and re-run qmake and see if that fixes the problem (which it should if you can run qmake successfully). This can happen if you have an old build with files pointing to some Qt-SDK:s not longer valid on your system
If qmake isn’t found, check under “Tools/Options/Qt4”. You should at least find one entry. If not, add qmake from c:/Qt/2010.04/… and try again.
Hope this solves the problem.
Thanks Mariio but that did not solve the problem. I just noticed that in my first post the included file names did not show up. Here it is again, with code block markers. Hopefully this time you will see that its QGraphics headers which are the problem. All the other normal class headers show up just fine. qmake is found and the default paths seem to work.
Is there a Qt lib include I need to add to my .pro file to get QGraphics ?
- #include <QGraphicsItem>
- #include <QGraphicsView>
- #include <QGraphicsScene>