Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.4
-
None
-
Win7, Win10
-
-
b0c804f345a383d2813f4709632baa43a4275646 (qt/qtbase/5.15)
Description
QComboBox has quite strange behavior with with model that changes dynamically.
After resetting model, the current index becomes -1 (even if there are some rows left in the model), but when another model was set to the combobox current index becomes 0.
Check attached project for more details . QComboBoxStrangeBehavior.rar
Attachments
Issue Links
- resulted in
-
QTBUG-86791 QComboBox's currentIndex() changes from -1 to 0 when adding data to an empty model
- Closed