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

List:       pykde
Subject:    [PyKDE] PyQt and QByteArray
From:       Ingo Krabbe <i.krabbe () dokom ! net>
Date:       2002-10-21 7:39:37
[Download RAW message or body]

Ups:  The loadFromData function has a problem with my type:

  File "radar.py", line 116, in rxUpdatePicture
    x.loadFromData( str(data), int(count) )
TypeError: Argument 2 of QPixmap.loadFromData() has an invalid type

loadFromData is an overloaded member
bool loadFromData ( const uchar * buf, uint len, const char * format = 0, ColorMode mode = Auto )
bool loadFromData ( const uchar * buf, uint len, const char * format, int conversion_flags )
bool loadFromData ( const QByteArray & buf, const char * format = 0, int conversion_flags = 0 )

I would like to use the (const uchar*, uint, 0, Auto) one. How can I do
proper type conversion with pyQt or do I have to write my own interface
to perform this job ?

BYE INGO

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.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