diff options
-rw-r--r-- | src/plugins/platforms/qnx/qqnxwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp index 0a7b2e2258..29ef5241c4 100644 --- a/src/plugins/platforms/qnx/qqnxwindow.cpp +++ b/src/plugins/platforms/qnx/qqnxwindow.cpp @@ -135,9 +135,12 @@ QQnxWindow::QQnxWindow(QWindow *window, screen_context_t context) // Add window to plugin's window mapper QQnxIntegration::addWindow(m_window, window); - // setWindowState() does not get called when the platform window hasn't been created yet, so - // make sure to apply the inital window state here + // Qt never calls these setters after creating the window, so we need to do that ourselves here setWindowState(window->windowState()); + if (window->parent()) + setParent(window->parent()->handle()); + setGeometry(window->geometry()); + setVisible(window->isVisible()); } QQnxWindow::~QQnxWindow() |