aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qml/data/sizedItem.qml
blob: edcb0e862974ba751128d1c54906083cd16976d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import QtQuick

Rectangle {
    id: rect
    color: "blue"
    width: 200; height: 150

    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()
    }
}