make sure children are included in the moveToThread
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user