aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols/qquickpopup/data/doubleClickInMouseArea.qml
blob: e43a2f31609657853450387a3597bcb1a278721c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick
import QtQuick.Controls
import QtQuick.Window

Rectangle {
    width: 200; height: 200
    color: mouseArea.pressed ? "red" : "orange"

    Popup {
        visible: true
        closePolicy: Popup.NoAutoClose
        width: 100
        height: 100
        contentItem: MouseArea {
            id: mouseArea

            anchors.fill: parent
        }
        background: Rectangle {
            color: "green"
        }
    }
}