Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.10.1
-
None
-
win10, Qt 5.10.1, mingw compiler
Description
Hello there. today I encountered something strange and decided to send it to you to fix.
I am using win10 with Qt 5.10.1 and mingw.
when I try to call setItem(int row ,QStandardItem *); if the row is 0 then the ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); will be discarded. this only happens if the row number is 0.
I have also attached a program to show the problem. if you click on 1 there will be no problem but when the 0 button is clicked then the view will not be stretched anymore.
Goodluck