-
Bug
-
Resolution: Done
-
P1: Critical
-
5.1.0
-
8cc52b9d1e2638f0636f2817dffeccd623063718
In the following example, the "text" is expected to be shown inside the combo box. Or the color is shown instead.
ComboBox {
model: ListModel {
id: menuItems
ListElement { text: "Banana"; color: "Yellow" }
ListElement { text: "Apple"; color: "Green" }
ListElement { text: "Coconut"; color: "Brown" }
}
width: 200
}
Attempt to set the textRole to "text" does not help because the model is consider as native and this the role is ignored.