Skip to content
Snippets Groups Projects
Commit b51ae6f8 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

add crash button

parent e7e600d5
No related branches found
No related tags found
No related merge requests found
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick.Window 2.12
Window {
......@@ -6,4 +8,25 @@ Window {
height: 480
visible: true
title: qsTr("Hello World")
ColumnLayout {
anchors.fill: parent
Button {
id: button
text: "Greeting to crash"
onClicked: {
serviceObject.greeting();
}
}
}
Timer {
running: true
interval: 5000
onTriggered: {
console.log("triggered");
button.destroy();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment