From 161f50962d6105dc665a3035c0d489671f9bb6f0 Mon Sep 17 00:00:00 2001 From: Daniel Stonier Date: Mon, 8 Sep 2014 04:31:37 +0900 Subject: [PATCH] make sure children are included in the moveToThread --- modules/highgui/src/window_QT.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index 5093934..bdf696e 100644 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -740,14 +740,14 @@ double cvGetOpenGlProp_QT(const char* name) GuiReceiver::GuiReceiver() : bTimeOut(false), nb_windows(0) { doesExternalQAppExist = (QApplication::instance() != 0); - if ( doesExternalQAppExist ) { - moveToThread(QApplication::instance()->thread()); - } icvInitSystem(¶meterSystemC, parameterSystemV); timer = new QTimer(this); QObject::connect(timer, SIGNAL(timeout()), this, SLOT(timeOut())); timer->setSingleShot(true); + if ( doesExternalQAppExist ) { + moveToThread(QApplication::instance()->thread()); + } } -- 2.7.4