Details
Description
When objects are returned from QModelIndex.data they are not an instance of the object return from QAbstractItemModel.data.
I have setup a QAbstractItemModel subclass the returns a custom modelObject when given the custom userRole. This works just fine when I call mode.data(index,role). When I call index.data(role) I do not get an object of the correct type returned. It seems to return the python base type even if it is a super class way up in the inheritance. This happens with QAbstractProxyModel as well. I think any time it goes to Qt wraped data method it looses its python type information.
Attachments
Issue Links
- relates to
-
PYSIDE-207 sender().data() method not working when data is custom object
- Closed
For Gerrit Dashboard: PYSIDE-82 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
235448,6 | Enforce pure PyDict to be associated to VariantMap | 5.11 | pyside/pyside-setup | Status: MERGED | +2 | 0 |