Custom rendering in WTreeView?
Added by Johny Mattsson about 14 years ago
Hi all,
I'm currently evaluating Wt and am so far very impressed with it. To give it a bit of a workout I'm trying to build a small web-app, which includes using a WTreeView widget (I'd prefer to not use a WTree as I want MVC and expect a large dataset). What I would like to do is to extend the rendering capabilities beyond the existing text/icon/checkbox, and enable in-place editing and push buttons. I've hunted through the reference documentation but I can't quite get my head around how ItemDataRole:s interact with a WStandardItem in relation to a WTreeView, or how it might all be used by a WViewWidget.
Has anyone done anything like this, and/or is there any example code I go have a look at? Thanks in advance!
Replies (1)
RE: Custom rendering in WTreeView? - Added by Johny Mattsson about 14 years ago
Ah, found the WItemDelegate class shortly after I posted here. That seems to be just what I was looking for.