[PyKDE] Can I pickle PyQt stuff?
Green, Gregory P
gregory.p.green at boeing.com
Thu Jun 27 23:03:01 BST 2002
I solved this problem last year by using __getstate__ and __setstate__ in my
classes to dump and restore the information for the Qt class, and then
creating the class instance when loading. I only had to do a couple of them,
so it wasn't a problem. Not a general solution.
From: Willi Richert [mailto:mennosimons at gmx.net]
Sent: Thursday, June 27, 2002 12:58 PM
To: Stephen Green; pykde at mats.gmd.de
Subject: Re: [PyKDE] Can I pickle PyQt stuff?
QCanvas, etc. are all C++-Classes so pickle will not work. Maybe marshal
but I also thing it won't. Although I've not yet tried, I would suggest
QDataStream which provides serialization of binary data to a QIODevice.
On Thursday 27 June 2002 21:37, Stephen Green wrote:
> I'm trying to save a QCanvas as well as QCanvasItems, but I always get
> errors while pickling. Is there a way to make it work?
> MSN Photos is the easiest way to share and print your photos:
> PyKDE mailing list PyKDE at mats.gmd.de
Vieles ist einfach, der Rest zweifach.
PyKDE mailing list PyKDE at mats.gmd.de
More information about the PyQt