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 307 - Signal connect to a slot in a class inherited from Qt does not work
: Signal connect to a slot in a class inherited from Qt does not work
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: Other Linux
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-23 11:53 EEST by Mikael
Modified: 2010-09-10 19:21 EEST (History)
7 users (show)

See Also:


Attachments
Sample to demonstrate error (778 bytes, application/octet-stream)
2010-08-23 11:55 EEST, Mikael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael 2010-08-23 11:53:29 EEST
Connecting to a slot that is a member of a class inherited from one of the Qt
classes leads to an error and a failed connect.

Attached sample connects to both a member and global function, using both old
and new ways of connecting. Connects only work to the global function.

Sample output after start:
You can't add dynamic slots on an object originated from C++. 
You can't add dynamic slots on an object originated from C++. 

Sample output after pressing the button:
Global got called
Global got called
Comment 1 Mikael 2010-08-23 11:55:08 EEST
Created attachment 58 [details]
Sample to demonstrate error
Comment 2 renato filho 2010-08-23 12:04:19 EEST
Just a note, I did a test and this only occurred in classes derived from
QApplication.
Comment 3 renato filho 2010-08-25 17:34:32 EEST
fixed on PySide commit:

commit 42d98f91c49774227b89373e44f0f6de20605c52
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Aug 24 17:14:40 2010 -0300