Fixes crash in PaintedItem example when using threaded rendering.
This commit is contained in:
parent
7ab1f9834f
commit
9e037dae27
|
@ -67,6 +67,10 @@ public:
|
|||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
#ifdef Q_WS_X11
|
||||
QApplication::setAttribute(Qt::AA_X11InitThreads);
|
||||
#endif
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
qmlRegisterType<MyPaintItem>("MyModule", 1, 0, "MyPaintItem");
|
||||
|
|
Loading…
Reference in New Issue