From pykde Wed Nov 25 14:56:51 2009 From: Phil Thompson Date: Wed, 25 Nov 2009 14:56:51 +0000 To: pykde Subject: Re: [PyQt] QVariant misunderstandings Message-Id: <7570e530b0a9e4dc705c6f876756640d () localhost> X-MARC-Message: https://marc.info/?l=pykde&m=125916146006487 On Wed, 25 Nov 2009 15:44:25 +0100, Giovanni Bajo wrote: > Hi Phil, > > I must say I have not quite followed up all the developments wrt > QVariant. I'm using Python 2 and thus the QVariant v1 API. > > Shouldn't the following work as intuitevely expected? > >>>> from PyQt4.Qt import * >>>> a = QString("ciao") >>>> QVariant(a).toString() > PyQt4.QtCore.QString(u'') >>>> QVariant(a).type() > 127 > > Why should a plain QString be inserted within the QVariant as a custom > type? > > I'm using SIP 4.9.3 and PyQt 4.6.2 (unless I've broken something with my > internal merges). That's the bug that was fixed with SIP 4.9.3. You've either broken something or forgotten to rebuild PyQt. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt