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 941 - Signals with QtCore.Qt types as arguments has invalid signatures
: Signals with QtCore.Qt types as arguments has invalid signatures
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC Linux
: P2 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-22 02:06 EEST by Hereldar
Modified: 2011-08-23 00:35 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 Hereldar 2011-07-22 02:06:51 EEST
I discovered when trying to connect a function with the
`QHeaderView.sortIndicatorChanged` signal and the console displayed the
following message:

      Not valid signature of the signal: sortIndicatorChanged (int, SortOrder)

Then I tried it with the `QMainWindow.toolButtonStyleChanged` signal and got
the same error, so I suspect that other signals with `QtCore.Qt` types also
fail.

Steps to Reproduce:
-------------------

    from PySide.QtGui import QHeaderView, QMainWindow
    str(QHeaderView.sortIndicatorChanged)
    str(QMainWindow.toolButtonStyleChanged)

Actual Results:
---------------

    'sortIndicatorChanged(int,SortOrder)'
    'toolButtonStyleChanged(ToolButtonStyle)'

Expected Results:
-----------------

    'sortIndicatorChanged(int,Qt::SortOrder)'
    'toolButtonStyleChanged(Qt::ToolButtonStyle)'

Platform:
---------

    Distribution: Kubuntu 11.04
    KDE S.C.:     4.6.2
    Qt:           4.7.2
    PySide:       1.0.3
    PySide Tools: 0.2.9
Comment 1 Hugo Parente Lima 2011-07-28 20:01:22 EEST
Fixed in commits:

shiboken/d8173ec7fc2eb79df8b6c29fc5076186a13982e0
pyside/f918fdb490e62ff4a2860058edb0cf0d7b7e6c6f
Comment 2 renato filho 2011-08-23 00:35:37 EEST
Released on PySide 1.0.6