Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.1
-
None
-
-
e0cd9c6fc (dev), 35ef5d10e (6.7), 5981fba02 (6.6), 7cd61de9a (tqtc/lts-6.5)
Description
When using a Headerview in qml it queries headerData(...) from the AbstractTableModel but does not check DisplayRole or ToolTipRole or other default roles, only the roles that are manually specified in roleNames(). This was working well with older versions (checked with qt 6.5.2)
in the function
VDMAbstractItemModelDataType::value(...) (qqmldmabstractitemmodeldata_p.h 232)
only the rolenames are checked, not the roles that should be defined by default, as i understand from the documentation. https://doc.qt.io/qt-6/qabstractitemmodel.html#roleNames
Attachments
For Gerrit Dashboard: QTBUG-119765 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
546304,8 | Warn about missing default roles | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548689,2 | Warn about missing default roles | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
548932,5 | Warn about missing default roles | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
551749,2 | Warn about missing default roles | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |