Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.3
-
Windows 10
Description
Hi,
import QtQuick import QtQuick.Controls import QtQuick.Layouts ApplicationWindow { width: 500 height: 500 visible: true Window { width: 200 height: 200 visible: true Button { text: "Ok" onClicked: model.submit() } } }
The Window component is intended to open in the center of it's parent (the ApplicationWindow). It does that when you disable the Button component.
In the above example code the Window will open somewhere else on your screen. It seems to be the top left corner "mostly" but not always. Definitely not in the center of it's parent window.
Is there a workaround for this issue? I kinda need the Window to open in the center of it's parent.
I did play with other window flags to see if that helped but it didn't seem to help at all.
Cheers,
Mark