blob: e32784762f194fb6b746227b8595559779e115e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import QtQuick
Rectangle {
id: rect
color: "green"
Timer {
id: exitTimer
running: false
onTriggered: Qt.quit()
}
Window.onHeightChanged: {
if (rect.Window.width > 0)
console.info("window", rect.Window.width, rect.Window.height, "content", rect.width, rect.height)
exitTimer.restart()
}
}
|