A QSqlTableModel instance is used in the Qt framework to provide an editable data model for a single database table.
QSqlTableModel
is a high-level interface for reading and writing database records from a single table. It is built on top of the lower-level QSqlQuery
and can be used to provide data to view classes such as QTableView
.
QSqlTableModel
can also be used to access a database programmatically, without binding it to a view.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.