QSqlQueryModel

#include <QtSql/QSqlQueryModel>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSqlQueryModel


Overview

Public Functions Index

QSqlQueryModel (QObject *parent=0)
virtual ~QSqlQueryModel ()
virtual boolcanFetchMore (const QModelIndex &parent=QModelIndex()) const
virtual voidclear ()
virtual intcolumnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariantdata (const QModelIndex &item, int role=Qt::DisplayRole) const
virtual voidfetchMore (const QModelIndex &parent=QModelIndex())
virtual QVariantheaderData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual boolinsertColumns (int column, int count, const QModelIndex &parent=QModelIndex())
QSqlErrorlastError () const
QSqlQueryquery () const
QSqlRecordrecord (int row) const
QSqlRecordrecord () const
virtual boolremoveColumns (int column, int count, const QModelIndex &parent=QModelIndex())
virtual introwCount (const QModelIndex &parent=QModelIndex()) const
virtual boolsetHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
voidsetQuery (const QSqlQuery &query)
voidsetQuery (const QString &query, const QSqlDatabase &db=QSqlDatabase())
virtual QModelIndexbuddy (const QModelIndex &index) const Inherited
virtual booldropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)Inherited
virtual Qt::ItemFlagsflags (const QModelIndex &index) const Inherited
boolhasIndex (int row, int column, const QModelIndex &parent=QModelIndex()) const Inherited
virtual QModelIndexindex (int row, int column, const QModelIndex &parent=QModelIndex()) const Inherited
boolinsertColumn (int column, const QModelIndex &parent=QModelIndex())Inherited
boolinsertRow (int row, const QModelIndex &parent=QModelIndex())Inherited
virtual boolinsertRows (int row, int count, const QModelIndex &parent=QModelIndex())Inherited
virtual QMap< int, QVariant >itemData (const QModelIndex &index) const Inherited
virtual QModelIndexListmatch (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const Inherited
virtual QMimeData *mimeData (const QModelIndexList &indexes) const Inherited
virtual QStringListmimeTypes () const Inherited
QAbstractItemModel (QObject *parent=0)Inherited
QAbstractTableModel (QObject *parent=0)Inherited
boolremoveColumn (int column, const QModelIndex &parent=QModelIndex())Inherited
boolremoveRow (int row, const QModelIndex &parent=QModelIndex())Inherited
virtual boolremoveRows (int row, int count, const QModelIndex &parent=QModelIndex())Inherited
const QHash< int, QByteArray > &roleNames () const Inherited
virtual boolsetData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)Inherited
virtual boolsetItemData (const QModelIndex &index, const QMap< int, QVariant > &roles)Inherited
voidsetSupportedDragActions (Qt::DropActions)Inherited
QModelIndexsibling (int row, int column, const QModelIndex &idx) const Inherited
virtual voidsort (int column, Qt::SortOrder order=Qt::AscendingOrder)Inherited
virtual QSizespan (const QModelIndex &index) const Inherited
Qt::DropActionssupportedDragActions () const Inherited
virtual Qt::DropActionssupportedDropActions () const Inherited

Protected Functions Index

QSqlQueryModel (QSqlQueryModelPrivate &dd, QObject *parent=0)
QModelIndexindexInQuery (const QModelIndex &item) const
virtual voidqueryChange ()
voidsetLastError (const QSqlError &error)
voidbeginInsertColumns (const QModelIndex &parent, int first, int last)Inherited
voidbeginInsertRows (const QModelIndex &parent, int first, int last)Inherited
boolbeginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationColumn)Inherited
boolbeginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationRow)Inherited
voidbeginRemoveColumns (const QModelIndex &parent, int first, int last)Inherited
voidbeginRemoveRows (const QModelIndex &parent, int first, int last)Inherited
voidbeginResetModel ()Inherited
voidchangePersistentIndex (const QModelIndex &from, const QModelIndex &to)Inherited
voidchangePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to)Inherited
QModelIndexcreateIndex (int row, int column, void *data=0) const Inherited
QModelIndexcreateIndex (int row, int column, int id) const Inherited
QModelIndexcreateIndex (int row, int column, quint32 id) const Inherited
booldecodeData (int row, int column, const QModelIndex &parent, QDataStream &stream)Inherited
voidencodeData (const QModelIndexList &indexes, QDataStream &stream) const Inherited
voidendInsertColumns ()Inherited
voidendInsertRows ()Inherited
voidendMoveColumns ()Inherited
voidendMoveRows ()Inherited
voidendRemoveColumns ()Inherited
voidendRemoveRows ()Inherited
voidendResetModel ()Inherited
QModelIndexListpersistentIndexList () const Inherited
QAbstractItemModel (QAbstractItemModelPrivate &dd, QObject *parent=0)Inherited
QAbstractTableModel (QAbstractItemModelPrivate &dd, QObject *parent)Inherited
voidreset ()Inherited
voidsetRoleNames (const QHash< int, QByteArray > &roleNames)Inherited

Public Slots Index

Only has inherited public slots

virtual voidrevert ()Inherited
virtual boolsubmit ()Inherited

Signals Index

Only has inherited signals

voiddataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)Inherited
voidheaderDataChanged (Qt::Orientation orientation, int first, int last)Inherited
voidlayoutAboutToBeChanged ()Inherited
voidlayoutChanged ()Inherited

Public Functions

QSqlQueryModel (

virtual~QSqlQueryModel ()

Destructor.

virtual bool canFetchMore (

virtual void clear ()

virtual int columnCount (

virtualQVariant data (

virtual void fetchMore (

virtualQVariant headerData (
  • intsection,
  • Qt::Orientationorientation,
  • introle )

virtual bool insertColumns (

QSqlError lastError ()

QSqlQuery query ()

QSqlRecord record (
  • introw)

QSqlRecord record ()

virtual bool removeColumns (

virtual int rowCount (

virtual bool setHeaderData (
  • intsection,
  • Qt::Orientationorientation,
  • const QVariant &value,
  • introle )

void setQuery (

void setQuery (

virtualQModelIndex buddy (Inherited

virtual bool dropMimeData (Inherited

virtual Qt::ItemFlags flags (Inherited

bool hasIndex (Inherited

virtualQModelIndex index (Inherited

bool insertColumn (Inherited

bool insertRow (Inherited

virtual bool insertRows (Inherited

virtualQMap< int, QVariant > itemData (Inherited

virtualQModelIndexList match (Inherited

virtualQMimeData * mimeData (Inherited

virtualQStringList mimeTypes ()Inherited

QAbstractItemModel (Inherited

QAbstractTableModel (Inherited

bool removeColumn (Inherited

bool removeRow (Inherited

virtual bool removeRows (Inherited

const QHash< int, QByteArray > & roleNames ()Inherited

virtual bool setData (Inherited

virtual bool setItemData (Inherited

void setSupportedDragActions (
  • Qt::DropActions)
Inherited

QModelIndex sibling (Inherited

virtual void sort (
  • intcolumn,
  • Qt::SortOrderorder )
Inherited

virtualQSize span (Inherited

Qt::DropActions supportedDragActions ()Inherited

virtual Qt::DropActions supportedDropActions ()Inherited

Protected Functions

QSqlQueryModel (
  • QSqlQueryModelPrivate &dd,
  • QObject *parent )

QModelIndex indexInQuery (

virtual void queryChange ()

void setLastError (

void beginInsertColumns (Inherited

void beginInsertRows (Inherited

bool beginMoveColumns (
  • const QModelIndex &sourceParent,
  • intsourceFirst,
  • intsourceLast,
  • const QModelIndex &destinationParent,
  • intdestinationColumn )
Inherited

bool beginMoveRows (
  • const QModelIndex &sourceParent,
  • intsourceFirst,
  • intsourceLast,
  • const QModelIndex &destinationParent,
  • intdestinationRow )
Inherited

void beginRemoveColumns (Inherited

void beginRemoveRows (Inherited

void beginResetModel ()Inherited

void changePersistentIndex (Inherited

void changePersistentIndexList (Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • void *data )
Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • intid )
Inherited

QModelIndex createIndex (
  • introw,
  • intcolumn,
  • quint32id )
Inherited

bool decodeData (Inherited

void encodeData (Inherited

void endInsertColumns ()Inherited

void endInsertRows ()Inherited

void endMoveColumns ()Inherited

void endMoveRows ()Inherited

void endRemoveColumns ()Inherited

void endRemoveRows ()Inherited

void endResetModel ()Inherited

QModelIndexList persistentIndexList ()Inherited

QAbstractItemModel (
  • QAbstractItemModelPrivate &dd,
  • QObject *parent )
Inherited

QAbstractTableModel (
  • QAbstractItemModelPrivate &dd,
  • QObject *parent )
Inherited

void reset ()Inherited

void setRoleNames (Inherited

Public Slots

(Only has inherited public slots)

virtual void revert ()Inherited

virtual bool submit ()Inherited

Signals

(Only has inherited signals)

void dataChanged (Inherited

void headerDataChanged (
  • Qt::Orientationorientation,
  • intfirst,
  • intlast )
Inherited

void layoutAboutToBeChanged ()Inherited

void layoutChanged ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus