PDA

View Full Version : unresolved external symbol for QGLWidget



Wasabi
13th May 2011, 02:26
I've looked up after this error, but everyone else who's had similar problems seems to have had issues with "child" classes (inheriting from Qt objects) which haven't been put in the .pro file. However, in my case, the error that comes up is pointing at QGLWidget, not at a class that inherits from it. So it's not as if I can add QGLWidget.cpp to the SOURCE list in the .pro file.

error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void * __thiscall QGLWidget::qt_metacast(char const *)"

Hints?

high_flyer
13th May 2011, 12:56
you need to add this to your pro file:
QT += opengl