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

QComboBox broken on Mac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 4.7.4
    • 4.7.2
    • None
    • Mac OS X 10.6.7
    • macOS

      There was this change from 4.7.1 to 4.7.2:
      In function qcombobox.cpp / QComboBoxPrivateContainer::leaveEvent

      view->clearSelection(); // 4.7.1

      has been changed for:

      view->setCurrentIndex(QModelIndex()); // 4.7.2

      (this is inside an #ifdef Q_WS_MAC section)

      but if leaveEvent is called before QEvent::MouseButtonRelease (which calls emit itemSelected(view->currentIndex()))
      then nothing is selected as currentIndex() has been made unvalid.

      This is what happens here, always, hence combo boxes are unusable. Curiously, this only happens with the debug libs.
      Reverting the change to what was in 4.7.1, solves the problem.

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

            waterdomain Water Domain (Inactive)
            jirauser26727 user-04d21 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes