Without going into whether this is appropriate use or not, an easy solution is to store the data using a role that the delegate won't render.
Eg:
QAbstractItemModel *model = tableWidget.model();
QModelIndex index = tableWidget.currentIndex().;
QVariant data = getData();
model->setData(index, data, ItemDataRole::UserRole)