When i set data via Qt::CheckStateRole the item becomes user - checkable automatically.
set it unchecked

However I have to manage QAbstractItemModel instead of QStandardItemModel, then how to change the flags via index as there is no item in QAbstractItemModel?
you have to reimplement Qt::ItemFlags QAbstractItemModel::flags ( const QModelIndex & index ) const