Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
/MyFolder/main.cpp:9: undefined reference to 'QGraphicsScene::QGraphicsScene(QObject*)' |
IDE: Qt Creator 1.3.1
Project type: Qt4 Console Application
Selected required modules: QtCore
#include <QtGui/QGraphicsScene> |
As the link error indicates, QGraphicsScene is included but not added to project. The project file might look like this:
#------------------------------------------------- |
If you want to work with QGraphicsScene you will need to add QtGui to your project in the select required modules dialog in the project creation wizard. One (correct or incorrect?) way to remove it is by changing the project file to:
#------------------------------------------------- |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.