NAME
Qt::Sql::QSqlTableModel
PUBLIC METHODS
- QSqlTableModel(QObject * parent, QSqlDatabase db)
- QSqlTableModel(QObject * parent, QSqlDatabase db = QSqlDatabase())
- QSqlTableModel(QObject * parent = 0, QSqlDatabase db = QSqlDatabase())
- ~QSqlTableModel()
- void clear()
- QVariant data(const QModelIndex & idx, int role)
- QVariant data(const QModelIndex & idx, int role = Qt::DisplayRole)
- QSqlDatabase database()
- QSqlTableModel::EditStrategy editStrategy()
- int fieldIndex(const QString & fieldName)
- QString filter()
- QFlags<Qt::ItemFlag> flags(const QModelIndex & index)
- QVariant headerData(int section, Qt::Orientation orientation, int role)
- QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole)
- bool insertRecord(int row, const QSqlRecord & record)
- bool insertRows(int row, int count, const QModelIndex & parent)
- bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex())
- bool isDirty(const QModelIndex & index)
- QSqlIndex primaryKey()
- bool removeColumns(int column, int count, const QModelIndex & parent)
- bool removeColumns(int column, int count, const QModelIndex & parent = QModelIndex())
- bool removeRows(int row, int count, const QModelIndex & parent)
- bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex())
- void revert()
- void revertAll()
- void revertRow(int row)
- int rowCount(const QModelIndex & parent)
- int rowCount(const QModelIndex & parent = QModelIndex())
- bool select()
- bool setData(const QModelIndex & index, const QVariant & value, int role)
- bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole)
- 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()
ENUM VALUES
- OnFieldChange
- OnRowChange
- OnManualSubmit
EXPORT
None by default.
AUTHOR
Dongxu Ma <dongxu@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 - 2012 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.