diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-11 15:55:01 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-11 15:55:01 +0200 |
commit | 9e037dae270a8879499e53e453bb0176bb19196a (patch) | |
tree | 90550420262669c2609c524ea0a6f808b50583d1 /examples | |
parent | 7ab1f9834ff38fffae8e87b87684b00b0509a21a (diff) |
Fixes crash in PaintedItem example when using threaded rendering.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/painteditem/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/declarative/painteditem/main.cpp b/examples/declarative/painteditem/main.cpp index 10bd4302c9..85028600be 100644 --- a/examples/declarative/painteditem/main.cpp +++ b/examples/declarative/painteditem/main.cpp @@ -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"); |