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 726 - QtCore.Slot segfaults with result = QtObject
: QtCore.Slot segfaults with result = QtObject
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 1.0.0
: PC Linux
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-11 22:01 EET by Ken Allen
Modified: 2011-04-01 23:16 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 Ken Allen 2011-03-11 22:01:54 EET
It appears to be impossible to return an object from a slot. A declaration like
this segfaults:

class Test(QtCore.QObject):
  def __init__(self):
    QtCore.QObject.__init__(self)

  @QtCore.Slot(result = QtCore.QObject)
  def getObject(self):
    return QtCore.QObject()

Note that it segfaults on the decorator, not when the slot is called.
Comment 1 Hugo Parente Lima 2011-03-11 22:36:08 EET
I can reproduce it, thanks for the report!
Comment 2 renato filho 2011-03-21 18:38:23 EET
commit 8ce3644a133753a3f1dacbe7c6022ce1db13cc81
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Mon Mar 21 10:08:04 2011 -0300
Comment 3 Hugo Parente Lima 2011-04-01 23:16:05 EEST
Closing bug after release of PySide 1.0.1.