Pump the Qt event loop before creating the SDL window
This commit is contained in:
parent
700655c051
commit
c71b513bc4
1 changed files with 6 additions and 0 deletions
|
|
@ -1742,6 +1742,12 @@ void Session::exec()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pump the Qt event loop one last time before we create our SDL window
|
||||||
|
// This is sometimes necessary for the QML code to process any signals
|
||||||
|
// we've emitted from the async connection thread.
|
||||||
|
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
|
QCoreApplication::sendPostedEvents();
|
||||||
|
|
||||||
int x, y, width, height;
|
int x, y, width, height;
|
||||||
getWindowDimensions(x, y, width, height);
|
getWindowDimensions(x, y, width, height);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue