Hi,
I want to make some data of QAbstractItemModel to be user-checkable. It seems that could be done via QAbstractItemModel : : flags(index), however, how to change the model's flags?

the QStandardItemModel has the interface setCheckable(bool) to make an item checkable or not, but the QAbstractItemModel does not.

By now, i can get the flags by
Qt Code:
  1. bool b = index.flags() & Qt::ItemIsUserCheckabel;
To copy to clipboard, switch view to plain text mode 

but how to set it?