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 253 - Segmentation Fault when clicked on ListWidget with TableModel
: Segmentation Fault when clicked on ListWidget with TableModel
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.3.2
: PC Linux
: P5 normal
Assigned To: renato filho
: http://paste.pocoo.org/show/228961/
:
:
  Show dependency treegraph
 
Reported: 2010-06-23 12:47 EEST by Marcus Strube
Modified: 2010-08-04 15:16 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Strube 2010-06-23 12:47:25 EEST
Since I am just a hobby programmer I really don't know whether this is really a
bug, but when I import PyQt4 here it says

 view.setModel(model)
TypeError: QListWidget.setModel() is a private method

But when I use PySide I can start and click on an ListWidgetItem and I get a
segmentation fault.
Comment 1 Hugo Parente Lima 2010-06-23 14:44:26 EEST
Do you have some code snippet to help us to fix the problem?
Comment 2 Marcus Strube 2010-06-23 14:50:47 EEST
Oh, i thought the URI field in the form is the right place for the link. I used
the pastebin from the pocoo guys.

http://paste.pocoo.org/show/228961/
Comment 3 Hugo Parente Lima 2010-06-23 15:23:15 EEST
Ah, I didn't see it, sorry =], anyway is always better to attach the code
snippet to the bug instead of using a pastebin url.
Comment 4 Hugo Parente Lima 2010-07-06 11:39:15 EEST
Bug confirmed, QListWidget::setModel should throw an exception when called,
because this method is QListWidget reduces the method visibility to private.
Comment 5 Hugo Parente Lima 2010-07-06 18:52:45 EEST
Fixed in commits:
apiextractor/bdc3622c47968ae529e2d14ceb2d770a4f498379
shiboken/ab9ad25af6065a71a4b968d250dc479f2585c7f3