First of all thanks for your input.
Yeah i asked that question on stackoverflow and the tip with the tree model was one of the answers. I realized this is not exactly what i need. I'm trying to do it like this now:
- Implement an QAbstractTableModel which is holding a list of Medium-Object pointers.
- use QSortFilterProxyModel derived model to filter relevant derived objects from Medium based on an enum type i introduced.
The intention of having only one model which actually holds the data is to be able to select entries in a TableView that only shows e.g. DVDs and delete them so they are also deleted in the Medium-Model. I don't want to have several lists that i have to keep synchronized.
Is that the approach to go for ?
Thanks for your answers.




Reply With Quote


Bookmarks