Details
Description
An app crash happens when you try to modfy table model from backgroun thread while having a HorizontalHeaderView synced to it.
For the demo please run https://github.com/mchistovib/brokenQMLThrAffCPP
As you can see, when pressing "add rows other thread", app crashes, however if you just comment out "syncView: tableView" line, it runs fine and succesfully adds rows to the table.
I am sure that this is a qt bug in HorizontalHeaderView, otherwise it would also happen with model that has no synced header
Attachments
For Gerrit Dashboard: QTBUG-107598 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
491689,3 | Doc: state that models are not thread-safe | dev | qt/qtbase | Status: MERGED | +2 | 0 |
508564,2 | Doc: state that models are not thread-safe | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
508713,2 | Doc: state that models are not thread-safe | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
508848,2 | Doc: state that models are not thread-safe | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
508903,2 | Doc: state that models are not thread-safe | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |