[Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice

Pavel Koshevoy pavel at aragog.com
Tue Sep 6 17:14:25 CEST 2011


On 9/6/11 8:48 AM, Yifei Li wrote:

> I tried your suggestion, but the problem persists: *QWidget: Must 
> construct a QApplication before a QPaintDevice*
> *
> *
> *
> *
> I don't understand, there's already a QApplication object 'app' before 
> I load the plugins. How come Qt still complains?
>
> To provide more information: my QMainWidget is constructed in Core's 
> constructor
>
> Any other ideas? Thanks
>

Could it be that your plugins are linked to a static version of Qt?  
I've seen similar messages before, I fixed it by linking the host app 
and the plugins to the same Qt dynamic libs (frameworks).

     Pavel.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110906/5027a004/attachment.html 


More information about the Qt-interest-old mailing list