Am 22.09.2011 um 11:46 schrieb Vincent Cai <[email protected]>:
> The error happens when I try to new b window in other thread.
> 

Meeep! Bummer! ;) A classic one I'd say ;)

You can only create or modify widgets in the "main" (aka "GUI") thread - the 
thread where QApplication "lives in", to be specific (which usually happens to 
be the thread which the OS starts for you when calling your entry main() 
function, since that is the place where one usually instantiates QApplication).

Check the Qt thread docs again, specifically the chapter about "painting and 
threads".

Cheers, Oliver
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to