forked from a-team-fr/qrythm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
46 lines (41 loc) · 1.02 KB
/
main.qml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import QtQuick 2.6
import QtQuick.Controls 1.5
import QtQuick.Dialogs 1.2
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
menuBar: MenuBar {
Menu {
title: qsTr("File")
MenuItem {
text: qsTr("&Open")
onTriggered: console.log("Open action triggered");
}
MenuItem {
text: qsTr("Exit")
onTriggered: Qt.quit();
}
}
}
MainForm {
anchors.fill: parent
button1.onClicked: {
metronome.marche()
// messageDialog.show(qsTr("Button 1 pressed"))
}
button2.onClicked: {
metronome.arret()
// messageDialog.show(qsTr("Button 2 pressed"))
}
}
MessageDialog {
id: messageDialog
title: qsTr("Information")
function show(caption) {
messageDialog.text = caption;
messageDialog.open();
}
}
}