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 416 - QSignalTransition lacks some constructor signatures
: QSignalTransition lacks some constructor signatures
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 0.4.2
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-10-15 10:36 EEST by Matti Airas
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 Matti Airas 2010-10-15 10:36:35 EEST
When trying to port PyQt's animation/stickman.py, I bumped into following:

Traceback (most recent call last):
  File "./stickman.py", line 611, in <module>
    cycle.addActivity(':/animations/jumping', QtCore.Qt.Key_J)
  File "./stickman.py", line 526, in addActivity
    self.m_alive.addTransition(KeyPressTransition(self.m_keyReceiver, key,
state))
  File "./stickman.py", line 429, in __init__
    super(KeyPressTransition, self).__init__(receiver.keyPressed)
TypeError: 'PySide.QtCore.QSignalTransition' called with wrong argument types:
  PySide.QtCore.QSignalTransition(PySide.QtCore.Signal)
Supported signatures:
  PySide.QtCore.QSignalTransition(PySide.QtCore.QObject, str,
PySide.QtCore.QState = None)
  PySide.QtCore.QSignalTransition(PySide.QtCore.QState = None)
Segmentation fault


Apparently, PySide is at a very minimum missing the following constructor:

  PySide.QtCore.QSignalTransition(PySide.QtCore.QObject, Signal,
PySide.QtCore.QState = None)

If the example should be expected to work as-is, the following should be
supported as well:

PySide.QtCore.QSignalTransition(Signal, sourceState=None)
Comment 1 renato filho 2010-10-20 12:04:29 EEST
Fixed on pyside commit:

commit ae942fd5dae9e59cae78a32ed598001bf70e523e
Author: renatofilho <renato.filho@openbossa.org>
Date:   Tue Oct 19 15:21:23 2010 -0300
Comment 2 renato filho 2010-11-25 17:48:13 EET
released on 1.0.0~beta1