Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.9
-
None
Description
- Create an empty Qt Quick Application using Qt Creator.
- In main.qml file add a timer which sets y position of the main window to 0.
Expected: window's title is aligned to screen's top. Instead: window's content part is aligned to screen top, window title is not visible and located outside of the screen (i.e. has a negative y coordinate).
Initializing y property to 0 at the app start works as expected.
import QtQuick 2.12 import QtQuick.Window 2.12 Window { id: window visible: true y: 0 width: 640 height: 480 title: qsTr("Hello World") Component.onCompleted: setWindowPosTimer.restart() Timer { id: setWindowPosTimer interval: 3000 repeat: false onTriggered: setWindowPos() } function setWindowPos() { window.y = 0; } }