[Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice
Yifei Li
yifli at mtu.edu
Mon Sep 5 15:59:59 CEST 2011
Hi all,
I got this error when running an application (once working with Qt-4.6.2 on Snow Leopard) after I switch to Qt-4.8.0 on Lion.
The error occurs when I construct a QWidget in a plugin loaded by the main application. My application works as follows:
void main()
{
QApplication app();
// in Core's constructor, plugins are loaded using QPluginLoader
Core core;
return app.exec();
}
Any idea how to solve this? Thanks
Yifei
More information about the Qt-interest-old
mailing list