Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0, 5.5.0
-
None
-
OS 10.6 intel
-
-
4ebc2cf74e557b65a8ce1dc518ca92f399ce89e8
Description
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(); }
Attachments
Issue Links
- replaces
-
QTBUG-20182 QComboBox on Mac - up and down arrows for scrolling items visible when not needed
- Closed