---------- Forwarded message ---------- From: Michele Ciampichetti <cia.mich...@gmail.com> Date: 2012/1/9 Subject: Re: [Qt-interest] Store/Retrive Image (or file) into/from QSqlite BLOB field To: Esdras Beleza <lis...@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 <lis...@esdrasbeleza.com> > > > On 9 January 2012 04:52, Michele Ciampichetti <cia.mich...@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 > > > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest