aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitem2/data/mapCoordinatesWithWindows.qml
blob: 8218c5230a5fe8b14e3e2c8d9692e5623e3f1fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import QtQuick

QtObject {
    id: root

    property Window windowA: Window {
        visible: true
        flags: Qt.FramelessWindowHint
        color: "green"
        x: 100; y: 100
        width: 300; height: 300

        Rectangle {
            objectName: "childItem"
            x: 50; y: 50
            width: 100; height: 100
            color: "red"
        }

        Window {
            objectName: "childWindow"
            parent: windowA
            x: 100; y: 100
            width: 100; height: 100
            visible: true
            color: "blue"

            Rectangle {
                objectName: "childItemInChildWindow"
                x: 30; y: 30
                width: 50; height: 50
                color: "orange"
            }
        }
    }

    property Window windowB: Window {
        visible: true
        flags: Qt.FramelessWindowHint
        color: "magenta"
        x: 500; y: 200
        width: 200; height: 200

        Rectangle {
            objectName: "childItem"
            x: 50; y: 50
            width: 100; height: 100
            color: "cyan"
        }
    }
}