blob: 30698908d77aec6b8251ab22d7450c8717393c05 (
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
|
import QtQuick
import QtQuick.Controls.Basic
Item {
width: 100
height: 100
visible: true
property bool wasPressed: false
property bool wasReleased: false
property bool wasClicked: false
Popup {
closePolicy: Popup.NoAutoClose
visible: true
Button {
objectName: "button"
text: "TAP ME"
anchors.fill: parent
onPressed: wasPressed = true
onReleased: wasReleased = true
onClicked: wasClicked = true
}
}
}
|