<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>QSqlTableModel Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <h1 align="center">QSqlTableModel Class Reference</h1> <h3 align="center">[<a href="com_trolltech_qt_sql.html">com.trolltech.qt.sql</a> package]</h3> <p>Inherits <a href="qsqlquerymodel.html">QSqlQueryModel</a>.</p> <h3>Constructor</h3> <ul> <li><div class="fn"/><b>void QSqlTableModel(QObject parent, QSqlDatabase db)</b></li> </ul> <h3>Constructor Properties</h3> <ul> <li><b>prototype</b>: The QSqlTableModel prototype object</li> <li><b>OnFieldChange</b></li> <li><b>OnRowChange</b></li> <li><b>OnManualSubmit</b></li> <li><b>EditStrategy( value )</b></li> </ul> <h3>Prototype Object Properties</h3> <p>The QSqlTableModel prototype object inherits properties from the <a href="qsqlquerymodel.html">QSqlQueryModel</a> prototype object and also has the following properties.</p> <ul> <li><div class="fn"/><b>QSqlDatabase database()</b></li> <li><div class="fn"/><b>EditStrategy editStrategy()</b></li> <li><div class="fn"/><b>int fieldIndex(String fieldName)</b></li> <li><div class="fn"/><b>String filter()</b></li> <li><div class="fn"/><b>bool insertRecord(int row, QSqlRecord record)</b></li> <li><div class="fn"/><b>bool isDirty(QModelIndex index)</b></li> <li><div class="fn"/><b>QSqlIndex primaryKey()</b></li> <li><div class="fn"/><b>void revertRow(int row)</b></li> <li><div class="fn"/><b>bool select()</b></li> <li><div class="fn"/><b>void setEditStrategy(EditStrategy strategy)</b></li> <li><div class="fn"/><b>void setFilter(String filter)</b></li> <li><div class="fn"/><b>bool setRecord(int row, QSqlRecord record)</b></li> <li><div class="fn"/><b>void setSort(int column, SortOrder order)</b></li> <li><div class="fn"/><b>void setTable(String tableName)</b></li> <li><div class="fn"/><b>String tableName()</b></li> </ul> <h3>Instance Properties</h3> <p>QSqlTableModel objects have no special properties beyond those inherited from the QSqlTableModel prototype object.</p> </body> </html>