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 860 - Problems with slot overloads
: Problems with slot overloads
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-05-19 21:04 EEST by Lauro Moura
Modified: 2011-06-22 20:14 EEST (History)
8 users (show)

See Also:


Attachments
Test case for PySide. (1.18 KB, text/x-python)
2011-05-19 21:04 EEST, Lauro Moura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2011-05-19 21:04:18 EEST
Created attachment 327 [details]
Test case for PySide.

QSignalMapper.map slot has two overloads: () and (QObject*).

Connecting it to e.g. QCheckBox.stateChanged(int) results in errors when the
signal is emitted:

TypeError: 'PySide.QtCore.QSignalMapper.map' called with wrong argument types:
13:   PySide.QtCore.QSignalMapper.map(int)
13: Supported signatures:
13:   PySide.QtCore.QSignalMapper.map()
13:   PySide.QtCore.QSignalMapper.map(PySide.QtCore.QObject)

In this case, the C++ connection would be between stateChanged(int) and map(),
dropping the int argument when it's emitted.
Comment 1 renato filho 2011-06-03 23:35:00 EEST
fixed on pyside commit:

commit 21dc8239726968738636d77d7e7f29164dc14ddb
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Fri Jun 3 11:32:47 2011 -0300
Comment 2 renato filho 2011-06-22 20:14:16 EEST
release 1.0.4