-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
56 lines (47 loc) · 816 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
45
46
47
48
49
50
51
52
53
54
55
56
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
ApplicationWindow {
id: window
width: 2000
height: 800
title: "qml"
visible: true
// Action {
// shortcut: StandardKey.Escape
// onTriggered: window.close()
// }
DataBus {
id: bus
}
Subscribe {
target: bus
}
Store {
id: store
}
RowLayout {
anchors.fill: parent
View {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: window.width * 0.33
model: store.model
color: "red"
}
View {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: window.width * 0.33
model: store.model
color: "white"
}
View {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: window.width * 0.33
model: store.model
color: "blue"
}
}
}