[Interest] Fwd: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite BLOB field
Michele Ciampichetti
cia.michele at gmail.com
Mon Jan 9 10:59:18 CET 2012
---------- Forwarded message ----------
From: Michele Ciampichetti <cia.michele at gmail.com>
Date: 2012/1/9
Subject: Re: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite
BLOB field
To: Esdras Beleza <listas at esdrasbeleza.com>
Dear Esdras,
thanks for your answer but... how I can do it? :) I need to subclass the
QSqlRelationDelegate? how Can I use the QDataWidgetMapper with
QPixmap::loadFromData()?
Could you post a small example?
Thanks a lot for your time
Michele
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
>> QSqlRelationalTableModel?
>>
>> 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.)
>
> Esdras
>
> --
> formulageek.com.br
> esdrasbeleza.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120109/945eded9/attachment.html>
More information about the Interest
mailing list