Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.16, 6.6.1, 6.7.0
-
-
960867566 (dev), 980cd76e6 (6.7)
Description
If the signal for a model's modelReset is set up before the model is assigned to a view, having that signal call resizeColumnsToContents(); on the view results in an infinite loop, immediately freezing the application.
If the model is assigned to the view before the signal is set up the issue is avoided.
See the attached project, to reproduce run the application, scroll down any amount then press the Update button.
Attachments
For Gerrit Dashboard: QTBUG-124301 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
555074,6 | QTableView: fix infinite loop when resizing rows/columns on model reset | dev | qt/qtbase | Status: MERGED | +2 | 0 |
555490,2 | QTableView: fix infinite loop when resizing rows/columns on model reset | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |