[PyQt] QPixmap.loadFromData()

paolo at paolodestefani.it paolo at paolodestefani.it
Mon Jan 28 20:27:25 GMT 2013


Il 2013-01-28 15:11 Hans-Peter Jansen ha scritto:
> try this:
>
>                print("Load", pix.loadFromData(QByteArray(ba), "PNG"))
>

I've tryed already this but with no success. >ba< is already a 
QByteArray BUT different from what i've store and i don't know why.
As i've replyed before i can only change the field type of the sql 
table from bytea to text and store there a QByteArray.toBase64() string

Thank you anyway


More information about the PyQt mailing list