Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.4, 6.2
-
-
f8db2b996f339ad7e0754cd232f1e71ebecf6367 (qt/qtquickcontrols2/dev) 875ddb2b25496fc114d443369c22ea9fd27568a6 (qt/qtquickcontrols2/6.2) ad86936d4e9c00ed5480c6fe4e0561d077ba48bc (qt/tqtc-qtquickcontrols2/5.15)
Description
Bindings to ComboBox acceptableInput property don't seem to work at all if ComboBox has not been given a validator. This seems to be fixed by creating a seemingly unrelated binding to the ComboBox contentItem.acceptableInput property.
Steps to reproduce & fix the problem:
- Run the attached example
- => acceptableInput is logged as true BUT according to binding it's false
- close the app
- Uncomment line 45 in main.qml
- Run the attached example
- => acceptableInput is logged as true AND according to binding it's true
Attachments
For Gerrit Dashboard: QTBUG-94307 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
353867,9 | QQuickComboBox: fix acceptableInput being wrong if no validator was set | dev | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
355249,2 | QQuickComboBox: fix acceptableInput being wrong if no validator was set | 6.2 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
355250,1 | QQuickComboBox: fix acceptableInput being wrong if no validator was set | 6.1 | qt/qtquickcontrols2 | Status: ABANDONED | 0 | 0 |
355263,2 | QQuickComboBox: fix acceptableInput being wrong if no validator was set | tqtc/lts-5.15 | qt/tqtc-qtquickcontrols2 | Status: MERGED | +2 | 0 |