1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Item { property string text; Text { ... } MouseArea { onClicked: { if (parent.text === "Quit") { Qt.quit() } else if (parent.text === "Start") { globalObject.start() } else if (parent.text === "Stop") { globalObject.stop() } } } } |
I don’t always understand why people do things in some ways.
Recent Comments