PDA

View Full Version : QTreeView with checkboxes



shad
4th May 2006, 13:22
How can I create QTreeView with custom model to show elements with checkboxes in the first column?
Qt docs don't have any info/example about this. Should I use delegates, and how?

jpn
4th May 2006, 13:29
Make sure your model returns Qt::ItemIsUserCheckable flag for indexes you want to be checkable and both data() and setData() handle role Qt::CheckStateRole.