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

QComboBox::showPopup() should use `usePopup` consistently

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.9, 5.12, 5.13, 5.14
    • None

    Description

      `QComboBox::showPopup()` caches the widget's SH_ComboBox_Popup style hint very early, but does not use the cached value throughout. I don't think that value can change (except for styles that have randomisation feature?), so there shouldn't be anything against using it in all places where the style hint is checked.

       

      I discovered this as a result of a crash executing the `view()->scrollTo()` instruction where for some reason the cached `style` pointer variable got corrupted (or the style somehow changed during the `showPopup()` call?!; either way undoubtedly a bug that's not in but only messes with Qt code).

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rjvbertin René Bertin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes