- 
    
Bug
 - 
    Resolution: Done
 - 
    
P3: Somewhat important
 - 
    5.4.1
 - 
    None
 
- 
        1382374deaa4a854aeb542e6c8f7e1841f2abb10
 
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.
- relates to
 - 
                    
QTBUG-10872 Behaviour of QStandardItem::setItemData() is inconsistent with QAbstractItemModel::setItemData()
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-45114 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 109157,15 | Correct QStandardItemModel::setItemData to follow QAbstractItemModel | dev | qt/qtbase | Status: MERGED | +2 | 0 |