[Qt-interest] Re : QWidget: Must construct a QApplication before a QPaintDevice
BOUCARD Olivier
boucard_olivier at yahoo.fr
Mon Sep 5 16:09:49 CEST 2011
Hi,
Is there the real code? Because QApplication app(); does not work at all...
Do you have static plugins?
>________________________________
>De : Yifei Li <yifli at mtu.edu>
>À : qt-interest at trolltech.com
>Envoyé le : Lundi 5 Septembre 2011 15h59
>Objet : [Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice
>
>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
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110905/f1fe3c88/attachment.html
More information about the Qt-interest-old
mailing list