blob: 23599649ec57cae117c83ba325f7e58ddad6461c (
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
|
import QtQml
QtObject {
id: root
objectName: button.objectName
property QtObject b: QtObject {
objectName: "button"
id: button
signal clicked
}
property Connections c: Connections {
id: connections
target: null
function onClicked() { button.destroy(); }
}
property Timer t: Timer {
interval: 10
running: true
onTriggered: {
root.objectName = connections.target.objectName
}
}
Component.onCompleted: {
connections.target = button;
button.clicked()
}
}
|