Re: [PyQt] qvariant and python objects

2008-06-24 Thread Phil Thompson
On Tue, 24 Jun 2008 18:52:46 +0200, "Henning Schröder" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 9:50 AM, Phil Thompson > <[EMAIL PROTECTED]> wrote: >> While QVariant knows how to copy an arbitrary Python object (which is > just >> reference count manipulation) it doesn't know how to ser

Re: [PyQt] qvariant and python objects

2008-06-24 Thread Henning Schröder
On Mon, Jun 23, 2008 at 9:50 AM, Phil Thompson <[EMAIL PROTECTED]> wrote: > While QVariant knows how to copy an arbitrary Python object (which is just > reference count manipulation) it doesn't know how to serialise one. BTW, is this reference available anyhow to Python? And could I use sip.cast wi

Re: [PyQt] qvariant and python objects

2008-06-23 Thread Phil Thompson
On Sun, 22 Jun 2008 15:21:07 -0700, "Adam Tenderholt" <[EMAIL PROTECTED]> wrote: > I've created a QVariant object by passing a Python object > (specifically, a list of numpy arrays) to its constructor, and I'm > trying to have it read into a QDataStream object. Unfortunately, it > doesn't work and

[PyQt] qvariant and python objects

2008-06-22 Thread Adam Tenderholt
I've created a QVariant object by passing a Python object (specifically, a list of numpy arrays) to its constructor, and I'm trying to have it read into a QDataStream object. Unfortunately, it doesn't work and gives me the error 'QVariant::save: unable to save type 428.'. The relevant code is below