Hi, it's me again !

I have a database table in which one of its columns stores the path to an image. I want to use a QSqlTableModel and a QTableView to show the records stored in that table, but I want to show the actual picture instead of its path. I'm a little confused by Qt's documentation on this issue.

Currently I'm trying to set the ItemDataRole to DecorationRole as it follows:

Qt Code:
  1. this->_model->setHeaderData(5, Qt::Horizontal, "Photo", Qt::DecorationRole);
To copy to clipboard, switch view to plain text mode 

But it doesn't work. Isn't any other way to do it without creating a custom delegate?

I looking at this example anyway, while this post gets replied:

http://doc.qt.nokia.com/4.6/itemviews-stardelegate.html