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

QComboBox Scroll Arrows incorrectly remain present when items removed on Mac.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.10.0 Alpha
    • 4.7.0, 5.5.0
    • None
    • OS 10.6 intel
    • macOS
    • 4ebc2cf74e557b65a8ce1dc518ca92f399ce89e8

      Adding a large number of items to a QComboBox results in scroll buttons at the top and bottom of the popup view.

      When items are removed from the QComboBox the buttons remain, but they should disappear.

      #include <QtGui>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QComboBox cb;
      
          for (int i = 0; i < 100; i++)
          {
                  cb.addItem(QString("Item %1").arg(i));
          }
      
          cb.showPopup();
          cb.show();
          cb.clear();
      
          for (int i = 0; i < 5; i++)
          {
                  cb.addItem(QString("Item %1").arg(i));
          }
      
          return a.exec();
      }
      

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

            richard Richard Moe Gustavsen
            dettman Dean Dettman (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes