NAME

Qt::Sql::QSqlTableModel

PUBLIC METHODS

QSqlTableModel(QObject * parent, QSqlDatabase db = QSqlDatabase())
QSqlTableModel(QObject * parent, QSqlDatabase db)
QSqlTableModel(QObject * parent = 0, QSqlDatabase db = QSqlDatabase())
QSqlTableModel(QObject * parent, QSqlDatabase db = QSqlDatabase())
~QSqlTableModel()
void clear()
QVariant data(const QModelIndex & idx, int role = Qt::DisplayRole)
QVariant data(const QModelIndex & idx, int role)
QSqlDatabase database()
QSqlTableModel::EditStrategy editStrategy()
int fieldIndex(const QString & fieldName)
QString filter()
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole)
QVariant headerData(int section, Qt::Orientation orientation, int role)
bool insertRecord(int row, const QSqlRecord & record)
bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex())
bool insertRows(int row, int count, const QModelIndex & parent)
bool isDirty(const QModelIndex & index)
QSqlIndex primaryKey()
bool removeColumns(int column, int count, const QModelIndex & parent = QModelIndex())
bool removeColumns(int column, int count, const QModelIndex & parent)
bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex())
bool removeRows(int row, int count, const QModelIndex & parent)
void revert()
void revertAll()
void revertRow(int row)
int rowCount(const QModelIndex & parent = QModelIndex())
int rowCount(const QModelIndex & parent)
bool select()
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole)
bool setData(const QModelIndex & index, const QVariant & value, int role)
void setEditStrategy(QSqlTableModel::EditStrategy strategy)
void setFilter(const QString & filter)
bool setRecord(int row, const QSqlRecord & record)
void setSort(int column, Qt::SortOrder order)
void setTable(const QString & tableName)
void sort(int column, Qt::SortOrder order)
bool submit()
bool submitAll()
QString tableName()

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2011 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html