-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
main.qml
44 lines (39 loc) · 937 Bytes
/
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
import QtQuick 2.11
import QtQuick.Window 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.11
Window {
objectName: "mainWindow"
visible: true
width: 640
height: 480
title: qsTr("Spix Example")
color: "#111111"
RowLayout {
anchors {
top: parent.top
left: parent.left
topMargin: 5
leftMargin: 5
}
Button {
objectName: "Button_1"
text: "Press Me"
onClicked: resultsView.appendText("Button 1 clicked")
}
Button {
objectName: "Button_2"
text: "Or Click Me"
onClicked: resultsView.appendText("Button 2 clicked")
}
}
ResultsView {
id: resultsView
anchors {
top: parent.verticalCenter
left: parent.left
right: parent.right
bottom: parent.bottom
}
}
}