To start with data() will be sufficient for read-only table, if editing is required then setData() has to be implemented. Role here is Qt::ItemDataRole, all the item specific data that is hidden from the table can be stored in Qt::UserRole + 1, 2, 3.. etc.
Bookmarks