[Qt-interest] displaying QImage type in QTableView

Markus Franke Franke.M at sebakmt.com
Mon May 11 10:00:03 CEST 2009


Dear all,

I want to display images (QImage) in a QTableView. Therefore, I assigned 
and implemented my own model (derived from QAbstractTableModel). In the 
QAbstractTableModel::data() routine I return the images as a QImage data 
type. However the images are not displayed in my table. The corresponding 
cell simply stays blank. Do I really need to implement my own delegate or 
can this be done with the standard QItemDelegate?

Thanks for help and best regards,

Markus Franke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090511/f7fc7120/attachment.html 


More information about the Qt-interest-old mailing list