[PyKDE] QObject code breakage

ian reinhart geiser geiseri at yahoo.com
Thu Apr 18 02:30:37 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay I narrowed this down finally.  It looks like the sipConvertToSubClassCode 
that is there crushes any objects created from a C++ based factory.  Since it 
only knows about PyQt objects any derived ones fail. 

The issue is that when you pass a pointer from C++ to an embedded Python 
object it is cast to a QObject if the object has the misfortune of being 
derived from a QObject.  The only other fix is to use MI to confuse SIP 
enough to leave it alone.  It looks like with that code in place all objects 
created by a factory class get clobbered.  I think we should revert the fix, 
because the old way at least worked.  I commented out the 
sipConvertToSubClassCode sections and now it behaves like it should.  

Phil what are the chances this could get into 3.2 yet?

- -ian reinhart geiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vhOrPy62TRm8dvgRAsQjAJ4tevrAwQscQ+w/MT8uzH5mydRa1QCgkidr
gbN9GPM6ditk3dlS7hp8Ipc=
=bc3D
-----END PGP SIGNATURE-----


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the PyQt mailing list