Label ComboBox - how to call an image
-
Hello.
Maybe someone can help me develop the image. I can't manage to call up the selected image. I want to use code that creates a button where you can select one of five images. So when I select "xxx" from the list, the image "xxx" will be displayed. I would like to create a separate qml for each image. So the image "xxx" will be specified by the file xxx.qml. Other images will be taken similarly. Below is the code that creates the select button.
LabelComboBox{
id: xxx
objectName: "Settings_xxx"
label: "xxx"
selectionEnabled: true
property var xxx_model: [{text:"xxx"},{text:"yyy"},{text:"zzz"},{text:"123"},{text:"www"}]
comboBoxModel: xxx_model
comboBoxModelTextProperty: "text"comboBoxComponent.comboBoxPopupSize: HmiGui.Big
comboBoxComponent.comboListTopMargin: UiTheme.styleRoot.generalMarginMedium
onComboboxItemActivated:{
WHAT SHOULD BE INSERT HERE?????????????????????
}
comboboxCurrentItem:{
WHAT SHOULD BE INSERT HERE?????????????????????
}
visible: true
infoButtonVisible: truemoreInfoText: "xxxxxxx."
moreInfoTitle: "xxxxx"moreInfoPopupSize: HmiGui.Big
},