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 1001 - Using new-style signal connections sometimes connects to the wrong signal
: Using new-style signal connections sometimes connects to the wrong signal
Status: CLOSED DUPLICATE of bug 988
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.6
: PC Linux
: P5 enhancement
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-09-05 02:38 EEST by David Bronke
Modified: 2011-09-21 21:19 EEST (History)
8 users (show)

See Also:


Attachments
Demonstration application using QComboBox (3.64 KB, application/octet-stream)
2011-09-05 02:38 EEST, David Bronke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Bronke 2011-09-05 02:38:32 EEST
Created attachment 419 [details]
Demonstration application using QComboBox

Overview:
When using new-style connections (object.signal.connect(target)) on signals
that are overloaded, you will sometimes receive the wrong data type in a
connected Python slot function.

Steps to Reproduce:
Attached is a sample application that demonstrates the issue using
QComboBox.currentIndexChanged which has 2 overloads, one which takes an int
argument and one which takes a QString.
The test runs 2 tests, one with old-style connections and one with new-style.
It can also take 'pyqt' as a parameter in order to run the tests with PyQt4
instead of PySide:

    python2 connect_types_issue_combobox.py pyqt

Actual Results:
When running with PySide, the new-style test gets a unicode argument instead of
an integer, like all of the other tests do.

Expected Results:
All tests should get integer arguments.

Release & Platform:
PySide 1.0.6.1
ArchLinux, fully updated as of a week ago (rolling release)
Comment 1 Hugo Parente Lima 2011-09-05 17:05:49 EEST

*** This bug has been marked as a duplicate of bug 988 ***
Comment 2 renato filho 2011-09-21 21:19:49 EEST
Release 1.0.7