Details
Description
When QStandardItem.__lt__ (corresponding to operator<) is implemented, it is never called. When using PyQt5, the attached code outputs
before sort: Item(1) Item(0) __lt__(Item(0), Item(1)) called after sort: Item(0) Item(1)
whereas for PySide the output is
before sort: Item(1) Item(0) after sort: Item(1) Item(0)
Attachments
Issue Links
- relates to
-
PYSIDE-1951 Recursion while using QTreeWidgetItem.__lt__
- Open
For Gerrit Dashboard: PYSIDE-1014 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
461536,2 | PySide6: Enable sorting overriding QStandardItem::operator<() | 6.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
461544,2 | PySide6: Enable sorting overriding QStandardItem::operator<() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |