From 7b360cd0a92e2f9f738a573dc3170795c2571d2c Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 13 Oct 2015 09:52:07 +0200 Subject: Perform action on button close pressed --- qml/main.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qml/main.qml') diff --git a/qml/main.qml b/qml/main.qml index 3e84b29..408fbc6 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -44,6 +44,8 @@ ApplicationWindow { button2.onClicked: messageDialog.show(qsTr("Button 2 pressed")) button3.onClicked: messageDialog.show(qsTr("Button 3 pressed")) + + buttonClose.onClicked: close() } MessageDialog { -- cgit v1.2.3-70-g09d2