PDA

View Full Version : QGLWidget in a plugin



zzz9
2nd October 2011, 20:24
I use plugins in my application. Each plugin provides application with widget. Every works ok. But when I try to load plugin with QGLWidget application crashes with message: QApplication must be created before QPainterDevice.
How can I fix the problem?

wysota
10th October 2011, 21:17
Hard to say without seeing the code. It is likely you have some static QPaintDevice derived object somewhere.