[Development] Deprecation of Qt Quick Controls 1
Helmut Mülner
helmut.muelner at gmail.com
Wed Feb 7 15:46:48 CET 2018
* And basically the only thing that really hurts me with controls 2 is that combobox becomes quite horrible
I use something like this for a decent looking combobox:
ComboBox {
id: comboBox
Layout.fillWidth: true
height: 30
Layout.maximumHeight: 30
Layout.minimumHeight: 30
font.pointSize: 10
anchors.verticalCenter: parent.verticalCenter
textRole: "name"
model: myModel
delegate: ItemDelegate {
width: comboBox.width
height: 30
contentItem: Text {
id: itemDelegateText
text: name
font: comboBox.font
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
highlighted: comboBox.highlightedIndex == index
}
}
Cheers,
Helmut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180207/8acb5226/attachment.html>
More information about the Development
mailing list