From: Mohammed Sameer Date: Tue, 11 Sep 2012 20:26:43 +0000 (+0300) Subject: Qt can call XInitThreads() if we set the AA_X11InitThreads attribute X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=commitdiff_plain;h=8ea85c98fc42ead8d25295dd67b2b0aab03dba2a Qt can call XInitThreads() if we set the AA_X11InitThreads attribute --- diff --git a/src/main.cpp b/src/main.cpp index 5cb7d81..62d6ba6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include "imports/plugin.h" @@ -13,8 +12,7 @@ #include "quillitem.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { - XInitThreads(); - + QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); QDeclarativeView view;