[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] how to call sip.voidptr.asstring()
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2004-03-18 19:38:53
Message-ID: 200403181938.53167.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 18 March 2004 14:54, Laurent Claustre wrote:
> I've just compiled/installed sip4.0rc3, PyQt 3.11 over Qt 3.2.0 with
> success, but don't know how
> to call the famous sip.voidptr.asstring() function.
> Is sip4 supporting this feature ?
>
>  >>> import qt, sip
>  >>> sip.voidptr.asstring()
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'voidptr'

img = QImage()

vptr = img.bits()

pystr = vptr.asstring(img.numBytes())

...or something like that.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic