Hi all,

I have a, reproducible, weird interaction with a (not so) "special"
named class and the QVariant. Let me show the code:

------------------------------------------------------------------------------
from PyQt4.Qt import *

class Effect(QObject):
pass

app = QApplication([])

x = Effect()
v = QVariant(x)

print v.toPyObject()
------------------------------------------------------------------------------

the result is:
<PyQt4.phonon.Effect object at 0x00CD44B0>

if I rename my class in Effect2 I obtain:
<__main__.Effect2 object at 0x00CD4468>

I'm using PyQt 4.7, Python 2.6 on an XP box.


TIA

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to