[PyQt] Re: Can no longer copy QColor objects

Phil Thompson phil at riverbankcomputing.co.uk
Fri Aug 10 15:42:19 BST 2007


On Friday 10 August 2007 12:28 pm, matthias.oberlaender at daimlerchrysler.com 
wrote:
>  > Message: 3
> >
> > Date: Tue, 7 Aug 2007 09:36:57 +0100
> > From: Phil Thompson <phil at riverbankcomputing.co.uk>
> > Subject: Re: [PyQt] Can no longer copy QColor objects
> > To: pyqt at riverbankcomputing.com
> > Message-ID: <200708070936.57772.phil at riverbankcomputing.co.uk>
> > Content-Type: text/plain;  charset="iso-8859-1"
> >
> > On Tuesday 07 August 2007 8:00 am,
>
> matthias.oberlaender at daimlerchrysler.com
>
> > wrote:
> > > Problem: Can no longer copy QColor objects
> > >
> > > Occured with PYQT 3.17.2 and SIP 4.6
> >
> > Was there a time when you *could* copy QColor objects?
>
> Yes, for example with PyQt 3.11. (Can't determine the Sip version on that
> configuration, because it did not yet provide any version attributes.)

I don't think it was ever supported. SIP v4.4 deliberately disabled __reduce__ 
so that there would be no doubt. SIP v4.7 adds support through 
the %PickleCode directive, but PyQt3 doesn't take advantage of it. There is 
nothing to stop you backporting the code from PyQt4 though.

Phil


More information about the PyQt mailing list