How about subclassing the model and reimplementing data() to return the proper icon for Qt::DecorationRole of each respective index?
How about subclassing the model and reimplementing data() to return the proper icon for Qt::DecorationRole of each respective index?
Last edited by wysota; 1st January 2012 at 20:16.
Sorry but would you be able to show an example of subclassing a model that seems like the perfect way to go
Don't you know how to implement a subclass in C++?
Qt Code:
public: // put your stuff here } };To copy to clipboard, switch view to plain text mode
Bookmarks