Android: Always apply initial geometry from QWindow to QtWindow
We shouldn't rely on the QWindow geometry being propagated through other means, so we should always propagate the geometry when initializing the QAndroidPlatformWindow. Pick-to: 6.8 Change-Id: I489b059ffae7a209005edaaff3674c1f39273bee Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
This commit is contained in:
parent
02734b644e
commit
6e52d01053
@ -72,8 +72,7 @@ void QAndroidPlatformWindow::initialize()
|
||||
const QRect finalNativeGeometry = QPlatformWindow::initialGeometry(
|
||||
window, requestedNativeGeometry, availableDeviceIndependentGeometry.width(),
|
||||
availableDeviceIndependentGeometry.height());
|
||||
if (requestedNativeGeometry != finalNativeGeometry)
|
||||
setGeometry(finalNativeGeometry);
|
||||
setGeometry(finalNativeGeometry);
|
||||
}
|
||||
|
||||
if (window->isTopLevel())
|
||||
|
Loading…
x
Reference in New Issue
Block a user