Actions
Bug #11505
openCalling WStandardItemModel::setHeaderData() on an empty model crashes
Start date:
04/07/2023
Due date:
% Done:
0%
Estimated time:
Description
Calling WStandardItemModel::setHeaderData() on an empty model crashes the whole application. The program exits unexpectedly.
Files
Updated by Roel Standaert almost 2 years ago
- Target version set to future
setHeaderData()
on an empty model indeed does not work, that's a limitation of WStandardItemModel
, and you should set the column count first.
However, I do think that instead of crashing it should probably either:
- throw, or
- return
false
(this is what Qt'sQStandardItemModel
does)
Updated by Romain Mardulyn 27 days ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 27 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Actions