How in ComboBox to make a dropdown list by the width of the text
Unsolved
QML and Qt Quick
-
Did so, but now does not change currentindex
delegate: ItemDelegate { width: comboBoxProfilOptions.width height: 25 highlighted: comboBoxProfilOptions.highlightedIndex === index hoverEnabled: comboBoxProfilOptions.hoverEnabled Rectangle{ anchors.fill: parent border.width: 1 border.color: "black" color: "#00000000" } Label{ x: 3 anchors.verticalCenter: parent.verticalCenter width: parent.width text: text1 font.pixelSize: comboBoxProfilOptions.font.pixelSize //color: "red" } }
-
Hi @Mihaill , can you explain a bit better?Are you telling you are not able to change the currentIndex in the comboBox or are you telling that you are able to customize the current selected item i.e,