Re: How to make QAbstractItemModel 's data checkable
Originally Posted by spirit
when you set data using Qt::CheckStateRole a checkbox will appear in item, but you also need to set flags as aamer4yu said.
When i set data via Qt::CheckStateRole the item becomes user - checkable automatically. However I have to manage QAbstractItemModel instead of QStandardItemModel, then how to change the flags via index as there is no item in QAbstractItemModel?
Bookmarks