PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1118 - QModelIndex is unhashable
: QModelIndex is unhashable
Status: RESOLVED WONTFIX
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: All All
: P4 enhancement
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2012-01-10 18:26 EET by Daniele Esposti
Modified: 2012-02-27 19:59 EET (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Esposti 2012-01-10 18:26:51 EET
QModelIndex instances are unhashable and cannot be used i.e. as values in a
set()
Comment 1 Hugo Parente Lima 2012-02-24 19:11:29 EET
QModelIndex aren't made to be stored, they can become invalid at any time, so
IMO QPersistentModelIndex could be hashable, not QModelIndex.
Comment 2 Daniele Esposti 2012-02-24 23:31:00 EET
I agree, QPersistenModelIndex is more appropriate
Comment 3 Hugo Parente Lima 2012-02-27 19:59:00 EET
As you filed a bug about QPersistentModelIndex not being hashable I'm marking
this one as WONTFIX.