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 451 - Unable to connect signals to QML functions using the new-style syntax
: Unable to connect signals to QML functions using the new-style syntax
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtDeclarative
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-02 12:08 EET by Matti Airas
Modified: 2010-11-25 17:48 EET (History)
0 users

See Also:


Attachments
Example application (1.36 KB, application/x-gzip)
2010-11-02 12:08 EET, Matti Airas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Airas 2010-11-02 12:08:14 EET
Created attachment 134 [details]
Example application

If you define a function in QML, it acts as a slot to the C++ world:

http://wiki.forum.nokia.com/index.php/CS001625_-_Connecting_Qt_signal_to_QML_function

However, the slot names are not visible as object attributes, and therefore you
can't use the new-style signal syntax to connect signals to the QML function
slots.

See the example: the syntax on qmlsigs.py:36 works but the on on qmlsigs.py:35
does not.
Comment 1 renato filho 2010-11-05 19:08:00 EET
fixed on shiboken commit:
commit 4120f5e4b8a2781a917d97395b251fbc0bf8c8d8
Author: renatofilho <renato.filho@openbossa.org>
Date:   Fri Nov 5 16:35:59 2010 -0300


pyside commit:

commit 257e0cdf188172a9548e652ca5763bb124bb58ea
Author: renatofilho <renato.filho@openbossa.org>
Date:   Fri Nov 5 16:34:11 2010 -0300
Comment 2 renato filho 2010-11-25 17:48:20 EET
released on 1.0.0~beta1