-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.qml
56 lines (49 loc) · 1.23 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
47
48
49
50
51
52
53
54
55
56
//------------------------------------------------------------------------------
// Created : 2015-2-11
// Author : Dmitry Sokolov <mr.dmitry.sokolov@gmail.com>
// Description :
//------------------------------------------------------------------------------
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import My.Controls 1.0
ApplicationWindow {
id: applicationWindow1
visible: true
width: 640
height: 480
title: qsTr("Hello World")
CustomItem {
id: rect1
anchors.fill: parent
anchors.margins: 5
anchors.bottomMargin: 10
}
toolBar: ToolBar {
id: tb1
RowLayout {
anchors.fill: parent
ToolButton {
text: qsTr("Open")
}
ToolButton {
text: qsTr("Save")
}
Item {
height: 1
Layout.fillWidth: true
}
ToolButton {
text: qsTr("Exit")
onClicked: Qt.quit()
}
}
}
Text {
id: text1
color: "#05ff00"
text: qsTr("Hello World")
anchors.top: parent.top
anchors.right: parent.right
}
}