Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.1.1, 5.2.0 Beta1
-
None
-
OSX 10.8.5, Qt5.1.1 (clang_64); 10.7.5, Qt 5.2
-
7e768dde39f9365a4e1fc45afc492b74744a44e6
Description
QComboBox closes immediately when clicked for editing. Examples/previous code work fine in Qt4.
Occurs in Color Editor Factory Example. Similarly, QSpinBox Delegate Example works fine with the QSpinBox, but exhibits the same closing behavior when the QSpinBox is changed to a QComboBox. The snippet at http://qt-project.org/wiki/Combo_Boxes_in_Item_Views works well to demonstrate the problem. Works in Qt4, broken in Qt5.
The QComboBox is created as an editor, and allows its value to be changed and set by using the arrow keys. Using openPersistentEditor on the view works as a temporary hack/workaround.