[PyQt] Issue with pyqtSignal

Brett Stottlemyer brett at stottlemyer.com
Fri Nov 4 13:43:15 GMT 2011


If the functions you are connecting are in python, you can use PyQt_PyObject
as the type.  That just passes the reference around, and everything works
fine.  I'm not sure about a good solution if you need to handle the type in
C/C++.

Brett

-----Original Message-----
From: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Detlev Offenbach
Sent: Friday, November 04, 2011 6:23 AM
To: PyQt Mailingliste
Subject: [PyQt] Issue with pyqtSignal

Hello,

I am defining a signal in one of my classes like this.

    tabRelocateRequested = pyqtSignal(int, int, int)

When this signal is emitted, the first parameter is bigger than an int (e.g.
by using id()). This causes the signal receiver to get a first parameter,
that is different to the value given in the emit call. How can I correct my
code (code i within eric4/5).

Regards,
Detlev

Detlev Offenbach
detlev at die-offenbachs.de



_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list