Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
6.2 Features
Description
When an editable ComboBox has the following model elements, the auto-completion will also match "banana", "bANANA" or any other variation. This causes a problem when you want to exactly match the strings.
ComboBox { editable: true model: ListModel { id: model ListElement { text: "Banana" } ListElement { text: "Apple" } ListElement { text: "Coconut" } } }
In qquickcombox.cpp:459 in the acceptInput() function the find message uses Qt::MatchFixedString which is case insensitive per documentation.
The problem is that I do the handling completely in the custom ComboBox, but this acceptInput() function kicks in afterwards and sets the currentIndex again.
The suggestion is to introduce a property to set the Qt::MatchFlags for the acceptInput() case.
Attachments
Issue Links
- is duplicated by
-
QTBUG-80195 QQuickComboBox editable: unexpected behavior on accepted()
- Closed
- relates to
-
QTBUG-51004 Completer popup
- Open
- resulted from
-
QDS-1203 Texture and material management in property editor
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-79877 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
313609,3 | WIP: ComboBox: add caseSensitivity property | dev | qt/qtquickcontrols2 | Status: ABANDONED | -2 | 0 |
371799,5 | WIP: ComboBox: add caseSensitivity property | dev | qt/qtdeclarative | Status: DEFERRED | -2 | 0 |