Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34042

QComboBox custom item delegate returns immediately when clicked in Qt5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.1.1, 5.2.0 Beta1
    • Widgets: Itemviews
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            wernerem Erik Werner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes