Navigation Menu

Skip to content

Commit

Permalink
Fixes crash in PaintedItem example when using threaded rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Lopes committed May 11, 2011
1 parent 7ab1f98 commit 9e037da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/declarative/painteditem/main.cpp
Expand Up @@ -67,6 +67,10 @@ class MyPaintItem : public QSGPaintedItem

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");
Expand Down

0 comments on commit 9e037da

Please sign in to comment.