forked from toby20130333/QtQuickExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DDBottomBar.qml
34 lines (33 loc) · 902 Bytes
/
DDBottomBar.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
import QtQuick 2.1
Rectangle {
id:btmRect
width: 100
height: 30
color: "#009EDB"
property string btmVersion: "主程序版本: V1.0.123"
property string btmConn: "已连接到多多指教服务器"
Text {
id: versionTxt
width: btmRect.width/2-4
height: btmRect.height
anchors.left: parent.left
anchors.leftMargin: 4
text: btmVersion
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
color: "white"
font.pixelSize: 12
renderType: Text.NativeRendering
}
Text {
id: connctTxt
anchors.left: versionTxt.right
width: btmRect.width/2-4
height: btmRect.height
text: btmConn
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
color: "white"
font.pixelSize: 12
}
}