import QtQuick 2.0 Item{ id:hmiLoadFailed width: parent.width height: parent.height property string imagePath property bool showBg : false signal signal_refreshClick() //全局遮罩背景 // Image{ // height: parent.height // width: parent.width // source: imagePath + "M8X_Mask_Full-screen.png" // MouseArea{ // id: mapMouseArea // anchors.fill: parent // } // } //msg的背景图片 Image { id: msg_bg source:imagePath + "M8X_Popup_BG_1line_and_2line.png" anchors.top: parent.top anchors.topMargin: 280 anchors.horizontalCenter: parent.horizontalCenter visible:showBg } HMILabel{ id:text anchors.horizontalCenter:parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 320 font.pixelSize: 30 text: qsTr("获取失败,请点击重试") + applinkControl.qsEmptyString color: "white" clip:true } HMIButton{ id: refreshBtn anchors.horizontalCenter:parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 441 btnImgOnPressed: imagePath +"Common/M8X_Popup_Button_p.png" btnImg: imagePath+"Common/M8X_Popup_Button.png" labelText: qsTr("重试") + applinkControl.qsEmptyString labelPixelSize: 30 onClicked:{ signal_refreshClick() } } }