Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Label ComboBox - how to call an image

Label ComboBox - how to call an image

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 278 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Darq
    wrote on last edited by
    #1

    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
    },

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved