Wt::WTreeView with Wt::WstandardItemModel
Added by Jakub Pavelka over 3 years ago
Hello,
I've got (probably silly) question.
Lets say I want to transform calendar to Wt::WTreeView, so it look like:
- January
- 1.
- ...
- ...
- 31.
- ...
- ...
- December
- 1.
- ...
- ...
- 31.
And lets say I'm lazy and don't want to create new derived class from Wt::WAbstractItemModel, but I'm still a big fan of MVC so I don't want to use Wt::WTree.
Is there any way how to set data to Wt::WStandardItemModel for it to be able to use in Wt::WTreeView and get a tree like you can see above?
I feel like I'm missing something (something really small), but I can't figure this out...
Replies (1)
RE: Wt::WTreeView with Wt::WstandardItemModel - Added by Jakub Pavelka over 3 years ago
I belive found a solution.
The small thing I was missing was that Wt::WStandardItem can have child Wt::WStandardItem.
I'm sorry for bother you.