Hi. I'm reading official Qt documentation and I can't understant piece of code:
//! [quoting mymodel_f]
Qt
::ItemFlags MyModel
::flags(const QModelIndex &index
) const{
}
//! [quoting mymodel_f]
//! [quoting mymodel_f]
Qt::ItemFlags MyModel::flags(const QModelIndex &index) const
{
return Qt::ItemIsEditable | QAbstractTableModel::flags(index);
}
//! [quoting mymodel_f]
To copy to clipboard, switch view to plain text mode
Qt::ItemIsEditable | QAbstractTableModel::flags(index);
To copy to clipboard, switch view to plain text mode
Why we can't just return Qt::ItemIsEditable?
Bookmarks