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?
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?
Make sure your model returns Qt::ItemIsUserCheckable flag for indexes you want to be checkable and both data() and setData() handle role Qt::CheckStateRole.
J-P Nurmi
Bookmarks