Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.1
-
None
-
1382374deaa4a854aeb542e6c8f7e1841f2abb10
Description
The documentation of QStandardItemModel::setItemData() links to the documentation of QAbstractItemModel::setItemData().
But the behavior of the QStandardItemModel::setItemData() is different. QStandardItemModel::setItemData() removes all roles data which is not set in the QMap parameter of setItemData(). The implementation of QAbstractItemModel::setItemData() changes only the roles and leave all other roles untouched.
The same behavior was reported at QTBUG-10872 but described for QStandardItem instead of QStandardItemModel, and for an very old version of Qt.
Attachments
Issue Links
- relates to
-
QTBUG-10872 Behaviour of QStandardItem::setItemData() is inconsistent with QAbstractItemModel::setItemData()
-
- Closed
-