[Interest] Fwd: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite BLOB field
cia.michele at gmail.com
Mon Jan 9 10:59:18 CET 2012
---------- Forwarded message ----------
From: Michele Ciampichetti <cia.michele at gmail.com>
Subject: Re: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite
To: Esdras Beleza <listas at esdrasbeleza.com>
thanks for your answer but... how I can do it? :) I need to subclass the
QSqlRelationDelegate? how Can I use the QDataWidgetMapper with
Could you post a small example?
Thanks a lot for your time
2012/1/9 Esdras Beleza <listas at esdrasbeleza.com>
> On 9 January 2012 04:52, Michele Ciampichetti <cia.michele at gmail.com>wrote:
>> Good morning to all,
>> How I can store/retreive Image (or file) into/from QSqlite BLOB field
>> using QDataWidgetMapper and QLabel (to show the picture) and
>> Could you send my any example?
>> Thanks a lot for your time
> It's not the full answer, but I think you can get the data of a blob
> field, load into a pixmap using QPixmap::loadFromData() and load then use
> QLabel::setPixmap() to put the pixmap into a QLabel.
> (I made it all night long.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest