代码拉取完成,页面将自动刷新
import QtQuick 2.0
Rectangle {
id:root
anchors{
right: parent.right
rightMargin: 5
top: parent.top
topMargin: 5
}
property real icongap: 16
// FontLoader { id: localFont; source: "fonts/DIGITAL/DS-DIGIB.TTF" }
// HomeButton{
// id: logo
// label.visible: false
// clickable: true
// source: "images/wvga/home/header_logo.png"
// onClicked: {
// popupFrame1.open()
// }
// }
HomeButton{
id: btIcon
label.visible: false
clickable: false
source: "images/wvga/home/bt.png"
// width: 12
// height: 12
anchors{
right: ethIcon.left
rightMargin: icongap
top: parent.top
topMargin: 10
// verticalCenter: parent.verticalCenter
}
}
HomeButton{
id: ethIcon
label.visible: false
clickable: false
source: "images/wvga/home/eth.png"
anchors{
right: wifiIcon.left
rightMargin: icongap
top: parent.top
topMargin: 10
// verticalCenter: parent.verticalCenter
}
}
HomeButton{
id: wifiIcon
// anchors.margins: 5
label.visible: false
// height: 24
clickable: false
source: "images/wvga/home/wifi.png"
anchors{
right:mobiIcon.left
rightMargin: icongap
top: parent.top
topMargin: 10
// verticalCenter: parent.verticalCenter
}
}
HomeButton{
id: mobiIcon
// anchors.margins: 5
label.visible: false
// height: 24
clickable: false
source: "images/wvga/home/mobile.png"
anchors{
right:tt.left
rightMargin: icongap
top: parent.top
topMargin: 10
// verticalCenter: parent.verticalCenter
}
}
Rectangle{
id:tt
color:"green"
width: 80
anchors.right: parent.right
// anchors.rightMargin: 20
// anchors.topMargin: 5
Text {
id: time
anchors.leftMargin: icongap
anchors.horizontalCenter: parent.horizontalCenter
font{
family:"DS-Digital"
pixelSize:14
}
// FontLoader { id: localFont; source: "qrc:/fonts/DIGITAL/DS-DIGIB.TTF" }
text: "00:00:00";color: "white";// style: Text.Outline;
}
Text {
id: date
anchors.top:time.bottom
anchors.leftMargin: icongap
anchors.horizontalCenter: parent.horizontalCenter
// font.pointSize:8; text: qsTr("2020年2月25日");style: Text.Outline;styleColor: "white"
// FontLoader { id: localFont1; source: "qrc:/fonts/DIGITAL/DS-DIGIB.TTF" }
font{
family: "DS-Digital"
pixelSize:10
}
// style: Text.Outline;
// text: qsTr("2020年2月25日")
color: "white"
}
}
Timer{
id:timer
interval:100;running:true;repeat: true
onTriggered: {
var currentTime = new Date();
time.text = Qt.formatTime(currentTime,"hh:mm:ss");
date.text = Qt.formatDate(currentTime,"yyyy-MM-dd");
}
}
Component.onCompleted: {
timer.start();
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。