Qt QAbstractModel: remove checkbox
问题 I started to learn Qt, and I would like to implement a table filled with data via QTableView. My problem is, that I don't know how to remove the checkboxes from the cells. It seems like they are put in by default. However, I read that I had to return a NULL-QVariant, but that's not what I was looking for as I still have data to put in. That's my code so far: QVariant MyModel::data(const QModelIndex &index, int role) const { int row = index.row(); int col = index.column(); QString daten;