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 813 - Can not override connect method when subclassing QObject
: Can not override connect method when subclassing QObject
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 1.0.1
: All All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-06 04:46 EEST by Luke
Modified: 2011-05-26 17:04 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 Luke 2011-04-06 04:46:21 EEST
Here's a simple example:

>>> from PySide import QtCore
>>> class O(QtCore.QObject):
...   def connect(self, *args):
...     print "connect"
...
>>> o = O()
>>> o.connect()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: PySide.QtCore.QObject.connect(): not enough arguments


I expected to be able to override the connect method, but it appears this is
somehow not allowed. I don't know if this applies to other classes/methods as
well.
Comment 1 Hugo Parente Lima 2011-04-06 16:14:15 EEST
This bug happens for any method with a static and non-static version.

Thanks for reporting.
Comment 2 Hugo Parente Lima 2011-05-05 19:53:40 EEST
Fixed in commit:

shiboken/361962fb326ee541eecae9ce2251ca23c4227079
Comment 3 renato filho 2011-05-26 17:04:02 EEST
PySide release 1.0.3