Hello!
I need some ideas about the best way to implement group titles in a QTableView.
I already have a special model (which combines multiple lists into a single list), an ItemDelegate (which draws the image and decoration in the TableView) and a ProxyModel, which I need for sorting and filtering.
Now I want to add group titles (depending on the sorting type I selected) to the list.
The result should look like this:
Attachment 11024
My questions are now:
- What is the best strategy to implement this?
- Can I implement the groups in the ProxyModel? Or do I have to do it in the (Source)Model?
- Is it possible to control all parameters (like appearance, column-span and size) from the ProxyModel?
- Can I pass information from the ProxyModel to the ItemDelegate?
I think somebody has already implemented something similar already and can share his experience?!
Maybe there I already some example code for this available?!
Any answers and hints are welcome...
Thx
Sven
Bookmarks