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

QComboBox popup does not resize when items are removed/added while popup is open.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.1
    • None
    • Linux, XFCE

    Description

      1. add a few items to a QComboBox
      2. open popup (by clicking on it, or with combobox->showPopup())
      3. remove items while keeping popup open

      Result:

      Popup contains blank space at the bottom where the removed items where. Adding items creates scrollbar/arrows but doesn't resize popup either.

      (It also messes up drawing custom content with a custom delegate, but this is probably another issue.)

      Attachments

        1. combobox_refresh_bug.pro
          0.4 kB
        2. main.cpp
          0.2 kB
        3. mainwindow.cpp
          0.5 kB
        4. mainwindow.h
          0.3 kB
        5. mainwindow.ui
          0.8 kB
        6. screenshot.png
          screenshot.png
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peppe Giuseppe D'Angelo
            iliis Samuel Bryner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes