-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLoadmain.qml
68 lines (61 loc) · 1.88 KB
/
Loadmain.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
57
58
59
60
61
62
63
64
65
66
67
68
import QtQuick 2.9
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3
Item {
visible: true
width:800
height: 500
//anchors.centerIn: parent
Rectangle{
id:main
color: "black"
anchors.fill:parent
SplitView{
id:upDnSplite
anchors.fill: parent
orientation: Qt.Vertical
Rectangle{
id:up
width:parent.width
//此处的height对应c++类中toolBar中高度
//height: 50
Layout.minimumHeight: 50
Layout.maximumHeight: 50
}
Rectangle{
id:down
SplitView {
id:lfRtSplite
anchors.fill: parent
orientation: Qt.Horizontal
Rectangle{
id:left
width:200
Layout.minimumWidth: 200
Layout.maximumWidth: 400
color: "black"
Text {
id: text1
anchors.centerIn: parent
text: qsTr("text1")
}
SearchView{
anchors.top: parent.top
}
}
Rectangle{
id:right
width: 200
Layout.fillWidth: true
Layout.minimumWidth: 200
color: "black"
//加入tableView
MyTableView{
anchors.fill: parent
}
}
}
}
}
}
}