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 645 - Error using short-circuit signals
: Error using short-circuit signals
Status: CLOSED DUPLICATE of bug 314
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-27 10:16 EET by Mattia Barbon
Modified: 2011-02-02 16:12 EET (History)
8 users (show)

See Also:


Attachments
Test program (483 bytes, text/x-python)
2011-01-27 10:16 EET, Mattia Barbon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Barbon 2011-01-27 10:16:18 EET
Created attachment 238 [details]
Test program

Hi,
using PyQt short-circuit signals (i.e. SIGNAL('foo'), without the signature
declaration) causes an error if the connected callable takes less parameters
than the emitted signal.

  With PyQt the attached program prints:

Y fun
Y meth
X fun 1
X meth 1
Y fun
Y meth

with PySide:

TypeError: sayY() takes no arguments (1 given)
Y meth
X fun 1
Error calling slot "say" 
TypeError: say() takes exactly 2 arguments (1 given)
TypeError: sayY() takes no arguments (1 given)
Y meth

Regards,
Mattia
Comment 1 renato filho 2011-01-27 10:24:49 EET
We recommend to use the new signal slot style to work with signals, this
functions was deprecated. Check the comments on bug #314.

Thanks

*** This bug has been marked as a duplicate of bug 314 ***
Comment 2 Mattia Barbon 2011-01-27 11:54:44 EET
(In reply to comment #1)
> We recommend to use the new signal slot style to work with signals, this
> functions was deprecated. Check the comments on bug #314.

  Maybe it would be better to document it in the PyQt/PySide differences page

http://developer.qt.nokia.com/wiki/Differences_Between_PySide_and_PyQt

?

I only checked open bugs (my bad), because I expected such a difference to be
either a to-be-fixed bug or documented there...

Regards,
Mattia
Comment 3 Hugo Parente Lima 2011-01-27 15:23:07 EET
(In reply to comment #2)
> (In reply to comment #1)
> > We recommend to use the new signal slot style to work with signals, this
> > functions was deprecated. Check the comments on bug #314.
> 
>   Maybe it would be better to document it in the PyQt/PySide differences page
> 
> http://developer.qt.nokia.com/wiki/Differences_Between_PySide_and_PyQt
> 
> ?

Yes, and hey, it's a wiki, you can do it :-D
Comment 4 renato filho 2011-02-02 16:12:40 EET
released