import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "coordinate.js" as CONFIG import "FuncList.js" as Func import "../layoutList.js" as Layout HMICenterWindow { id: radio_main Item { id: radio_window onVisibleChanged: { console.log("RadioDashBoard visible") } Component.onCompleted: { console.log("RadioDashBoard onCompleted") } Image { id: main_img x:comX y:comY width:800 height:350 source:CONFIG.MAIN_IMG } Image { x:comX y:comY width:800 height:350 source:CONFIG.BG_IMG_All } Text { id: band_txt x:300 y:300 height:50 width:70 text: "FM" color: "white" font.pixelSize: 65 } Text { id: freq_txt x:512 y:300 width: 30 height: band_txt.height text: "87.5" color: "white" font.pixelSize: 65 } Image { id: stereo_image x: 700 y: 300 source:"../images/Type_L_Radio/Radio_Icon_Stereo.png" visible: true } Item { id: freq_Unit x:700 y:345 width: freq_Unit_Img.width height: freq_Unit_Img.height Image { id: freq_Unit_Img source: "../images/Type_L_Radio/Radio_MainMenu_Font_MHz.png" } } } /*========================================Connections start=============================================*/ Connections { target: dashRadioCtrl onDataResult: { console.log("onDataResult" + freq) console.log("onDataResult" + currentBand) freq_txt.text = freq if ((currentBand == 0) || (currentBand == 1) || (currentBand == 2)) { band_txt.text = "FM" freq_Unit_Img.source = "../images/Type_L_Radio/Radio_MainMenu_Font_MHz.png" } else if ((currentBand == 3) || (currentBand == 4)) { band_txt.text = "AM" freq_Unit_Img.source = "../images/Type_L_Radio/Radio_MainMenu_Font_kHz.png" } } } /*========================================Connections End=============================================*/ }