Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
5.11.0
-
None
-
d2ae838a7c6a49eb826ddf8de115306d11dd4d30 (qt/qtbase/5.13)
Description
The widgets that are setted into QTableWidget cells are shown with wrong width.
On Qt 5.11.0:
On Qt 5.10.1
The code:
#include <QApplication> #include <QTableWidget> #include <QPushButton> #include <QHeaderView> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTableWidget table(5, 5); for (int i = 0; i < 5; ++i) { for (int j = 0; j < 5; ++j) table.setCellWidget(i, j, new QPushButton("0", &table)); } table.horizontalHeader()->setDefaultSectionSize(40); table.resize(300, 200); table.show(); return a.exec(); }
Attachments
Issue Links
- relates to
-
QTBUG-76011 [REG 5.10.0->5.11.3] Widgets break out and overlap Tree View columns.
-
- Closed
-
- resulted from
-
QTBUG-37433 QTableView doesn't work in RTL
-
- Closed
-