It is false because the underlying generic SQL database has nowhere to store the image that you have set as the Decoration role. You can either use a delegate on the view to draw the relevant icon or you could subclass QSqlTableModel and override data() to return appropriate icons when the DisplayRole is requested by the view (and pass other requests on to the base class).
Bookmarks