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 946 - QTreeWidgetItem operator == not implemented. Ubuntu 11.04
: QTreeWidgetItem operator == not implemented. Ubuntu 11.04
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.1
: PC Other
: P5 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-26 13:58 EEST by Anton Chikin
Modified: 2011-08-23 00:37 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chikin 2011-07-26 13:58:21 EEST
lst = []
p = PySide.QtGui.QTreeWidgetItem(0)
lst.attach(p)
print lst.index(p)
NotImplementedError : operator not implemented.
Comment 1 Anton Chikin 2011-07-26 14:01:42 EEST
Sorry.
lst.append(p) of course :)
Comment 2 Anton Chikin 2011-07-26 14:07:41 EEST
I've tried some more samples. The real issue is caused by this:
lst = []
p = PySide.QtGui.QTreeWidgetItem(0)
lst.attach(p)
p = PySide.QtGui.QTreeWidgetItem(0)
print lst.index(p)

i.e  (p == None) causes the error.
Comment 3 Hugo Parente Lima 2011-07-28 20:10:24 EEST
Qt doesn't offer operator== for QTreeWidgetItem.

Regards
Comment 4 renato filho 2011-08-23 00:37:23 EEST
Release PySide 1.0.6