Always give Qt::SubWindows a default window state of Qt::WindowNoState
On platforms such as iOS, the default window state is Qt::WindowMaximized, so that calling show() will fill the entire screen. But sub-windows should not get this treatment, as their geometry is typically managed manually. Pick-to: 6.2 6.2.0 Change-Id: Ib17c2011a16baf6023fe368b94fa7f38e12bd777 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
dca394096f
commit
c066cd2600
@ -450,6 +450,9 @@ Qt::WindowState QPlatformIntegration::defaultWindowState(Qt::WindowFlags flags)
|
||||
if (flags & Qt::Popup & ~Qt::Window)
|
||||
return Qt::WindowNoState;
|
||||
|
||||
if (flags & Qt::SubWindow)
|
||||
return Qt::WindowNoState;
|
||||
|
||||
if (styleHint(QPlatformIntegration::ShowIsFullScreen).toBool())
|
||||
return Qt::WindowFullScreen;
|
||||
else if (styleHint(QPlatformIntegration::ShowIsMaximized).toBool())
|
||||
|
Loading…
x
Reference in New Issue
Block a user