-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
in connection with Qt::DecorationRole, an implementation of a model's data method is supposed to return an icon in a QVariant. In C++, I guess this is done using the QVariant ( int typeOrUserType, const void * copy ) constructor, because there is no explicit constructor taking a QIcon. This method is wrapped in PyQt4, but I can't use it with a QIcon: Traceback (most recent call last): File "/home/shlomme/src/rs0.4/data/ui/playlistmodel.py", line 112, in data return QVariant(QVariant.Icon, QIcon()) TypeError: argument 2 of QVariant() has an invalid type What am I to do? best, Torsten - -- Torsten Marek <[EMAIL PROTECTED]> ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858 Keyserver: subkeys.pgp.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSMRqfMVFHqJEyFgRApceAJ92hbsGP3z/E5H+FIT/OB8AgkHuBQCeLdYl wbuWxex0IOGDorlqIp8fpPY= =ooOh -----END PGP SIGNATURE----- _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde