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 452 - QListWidgetItem() not casting NoneType to null correctly.
: QListWidgetItem() not casting NoneType to null correctly.
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-02 14:00 EET by genjix
Modified: 2010-11-25 17:48 EET (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 genjix 2010-11-02 14:00:09 EET
Doesn't need much description so I'll put the code here :)

  File "scrap.py", line 7, in __init__
    super(SidebarItem, self).__init__(None, self.SidebarItemType)
TypeError: 'PySide.QtGui.QListWidgetItem' called with wrong argument types:
  PySide.QtGui.QListWidgetItem(NoneType, int)
Supported signatures:
  PySide.QtGui.QListWidgetItem(PySide.QtGui.QListWidget = None, int = Type)
  PySide.QtGui.QListWidgetItem(PySide.QtGui.QIcon, QString,
PySide.QtGui.QListWidget = None, int = Type)
  PySide.QtGui.QListWidgetItem(QString, PySide.QtGui.QListWidget = None, int =
Type)

The first signature looks like the one I want and I'm passing None, int and it
wants None, int.
Comment 1 Marcelo Lira 2010-11-09 10:54:52 EET
Fixed in commit Shiboken/167959fa
Test in commit PySide/729d68b7
Comment 2 renato filho 2010-11-25 17:48:20 EET
released on 1.0.0~beta1