Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.3
-
None
Description
When a text is too long to fit inside the QComboBox popup it appears with "..." in the middle (e.g. "very_very_long_long_text" would
show up as "very_ve...og_text"). The scroll bar shows up but the text still appears with the "..." in the center.
Fault reproduced in Qt 4.5.2.
Test case to reproduce issue
=========================
#include <QApplication>
#include <QComboBox>
#include <QAbstractItemView>
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
QComboBox cb;
cb.setMaximumSize(70,10);
cb.addItem("very_very_long_long1_text");
cb.addItem("very_very_long_long2_text");
QAbstractItemView * view = cb.view();
view->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOn );
cb.show();
cb.showPopup();
return app.exec();
}
Attachments
Issue Links
- resulted from
-
QTBUG-3076 QComboBox's listView does not handle VerticalScrollBars Correctly
-
- Closed
-