-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.12.0
-
Fix Version/s: 5.12.1
-
Component/s: PySide
-
Labels:None
-
Environment:Not really relevant but Windows 10 64-bit, Fedora 29 64-bit, CentOS 7 64-bit, Ubuntu 18.10 64-bit
-
Platform/s:
-
Commits:c8970b29d76415d41fa383cbe5eb77eefb191fa1 (pyside/pyside-setup/5.12)
Classes inherited from QAbstractItemModel that implement index() will call createIndex(row, column, item). For a tree view you get the child item from the parent and you don't have the internal pointer to it. In the past (including PySide2 5.11.2) and with current PyQt5 passing the bare child item as the 3rd argument to createIndex() has worked fine. As of PySide2 5.12.0 I get:
TypeError: 'PySide2.QtCore.QAbstractItemModel.createIndex' called with wrong argument types
The attached is a simple example.
- resulted in
-
PYSIDE-915 Typesystem created functions don't get injected in child classes
-
- Closed
-