Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.8
-
-
b6ca35f65 (dev), b63615ca6 (6.8), dc1ae86ba (dev), 7c34903e4 (6.8)
Description
This simple reproducer shows that the size hint is to small:
int main(int argc, char* argv[]) { QApplication a(argc, argv); QPixmap pm(16, 16); pm.fill(Qt::red); QIcon ico(pm); QWidget w; QHBoxLayout* lay = new QHBoxLayout(&w); QComboBox* cbx1 = new QComboBox; cbx1->addItems({ "12345678901234567890", "2345678901234567890", "345678901234567890" }); lay->addWidget(cbx1); QComboBox* cbx2 = new QComboBox; cbx2->addItems({ "12345678901234567890", "2345678901234567890", "345678901234567890" }); cbx2->setEditable(true); lay->addWidget(cbx2); QComboBox* cbx3 = new QComboBox; cbx3->addItem(ico, "12345678901234567890"); lay->addWidget(cbx3); QComboBox* cbx4 = new QComboBox; cbx4->addItem(ico, "12345678901234567890"); cbx4->setEditable(true); lay->addWidget(cbx4); QComboBox* cbx5 = new QComboBox; cbx5->addItem("12345678901234567890"); cbx5->setFrame(false); lay->addWidget(cbx5); w.show(); }
Attachments
Issue Links
- is duplicated by
-
QTBUG-130896 QComboBox: checkable QStandardItem text overlaps checkbox on Windows
- Closed
- relates to
-
QTBUG-11967 QDateEdit/CalendarPopup(true) has incorrect sizing
- Closed
For Gerrit Dashboard: QTBUG-130824 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
601687,3 | Windows11Style: fix sizehint for QComboBox | dev | qt/qtbase | Status: MERGED | +2 | 0 |
601693,3 | QCommonStyle: adjust painting CE_ComboBoxLabel text | dev | qt/qtbase | Status: MERGED | +2 | 0 |
602016,2 | Windows11Style: fix sizehint for QComboBox | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
602263,2 | QCommonStyle: adjust painting CE_ComboBoxLabel text | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |