Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.3.1
-
None
-
bc49cbaab3356770eb4b27dcbc2e585bf21e9200
Description
QTableView::resizeRowsToContents() does not seem to be calculating the correct row height on Windows.
Here is an example which demonstrates this:
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QStandardItemModel *model = new QStandardItemModel(5, 1);
for(int ii=0; ii<model->rowCount(); ++ii)
QTableView tableview;
tableview.setModel(model);
tableview.resizeRowsToContents();
tableview.show();
return a.exec();
}
Notice (on Windows) that the row is too small for the text and thus the text is elided.
This does not seem to happen on X11 or Mac OSX.