iOS: Set initial window state on window creation
When showing a QWindow the window state is set first, and then the window is made visible. The latter is the step that creates the platform window, so we need to pick up the already set window state in our constructor and respect that. Change-Id: I54fe6c4ebcd3c9504614d2d48bd21f0d76adf3b7 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
5d878cae1d
commit
599c7a5ab9
@ -202,6 +202,8 @@ QIOSWindow::QIOSWindow(QWindow *window)
|
||||
{
|
||||
if ([[UIApplication sharedApplication].delegate isKindOfClass:[QIOSApplicationDelegate class]])
|
||||
[[UIApplication sharedApplication].delegate.window.rootViewController.view addSubview:m_view];
|
||||
|
||||
setWindowState(window->windowState());
|
||||
}
|
||||
|
||||
QIOSWindow::~QIOSWindow()
|
||||
|
Loading…
Reference in New Issue
Block a user