Commit 9e037dae authored by Yoann Lopes's avatar Yoann Lopes
Browse files

Fixes crash in PaintedItem example when using threaded rendering.

parent 7ab1f983
No related merge requests found
Showing with 4 additions and 0 deletions
...@@ -67,6 +67,10 @@ public: ...@@ -67,6 +67,10 @@ public:
int main(int argc, char ** argv) int main(int argc, char ** argv)
{ {
#ifdef Q_WS_X11
QApplication::setAttribute(Qt::AA_X11InitThreads);
#endif
QApplication app(argc, argv); QApplication app(argc, argv);
qmlRegisterType<MyPaintItem>("MyModule", 1, 0, "MyPaintItem"); qmlRegisterType<MyPaintItem>("MyModule", 1, 0, "MyPaintItem");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment