KLayout Manual: Main Index » Class Index » API reference - Class QSqlQueryModel

API reference - Class QSqlQueryModel

Notation used in Ruby API documentation

Description: Binding of QSqlQueryModel

Class hierarchy: QSqlQueryModel » QAbstractTableModel » QAbstractItemModel » QObject

Public methods

[const]boolcanFetchMoreMethod bool QSqlQueryModel::canFetchMore(const QModelIndex &parent)
[const]boolcanFetchMore(const QModelIndex parent)Method bool QSqlQueryModel::canFetchMore(const QModelIndex &parent)
voidclearMethod void QSqlQueryModel::clear()
[const]intcolumnCountMethod int QSqlQueryModel::columnCount(const QModelIndex &parent)
[const]intcolumnCount(const QModelIndex parent)Method int QSqlQueryModel::columnCount(const QModelIndex &parent)
voidcreateEnsures the C++ object is created
[const]QVariantdata(const QModelIndex item)Method QVariant QSqlQueryModel::data(const QModelIndex &item, int role)
[const]QVariantdata(const QModelIndex item,
int role)
Method QVariant QSqlQueryModel::data(const QModelIndex &item, int role)
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
voidfetchMoreMethod void QSqlQueryModel::fetchMore(const QModelIndex &parent)
voidfetchMore(const QModelIndex parent)Method void QSqlQueryModel::fetchMore(const QModelIndex &parent)
[const]QVariantheaderData(int section,
const Qt_Orientation orientation)
Method QVariant QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role)
[const]QVariantheaderData(int section,
const Qt_Orientation orientation,
int role)
Method QVariant QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role)
boolinsertColumns(int column,
int count)
Method bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &parent)
boolinsertColumns(int column,
int count,
const QModelIndex parent)
Method bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &parent)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QSqlErrorlastErrorMethod QSqlError QSqlQueryModel::lastError()
[const]QSqlQueryqueryMethod QSqlQuery QSqlQueryModel::query()
voidquery=(const QSqlQuery query)Method void QSqlQueryModel::setQuery(const QSqlQuery &query)
[const]QSqlRecordrecordMethod QSqlRecord QSqlQueryModel::record()
[const]QSqlRecordrecord(int row)Method QSqlRecord QSqlQueryModel::record(int row)
boolremoveColumns(int column,
int count)
Method bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent)
boolremoveColumns(int column,
int count,
const QModelIndex parent)
Method bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent)
[const]introwCountMethod int QSqlQueryModel::rowCount(const QModelIndex &parent)
[const]introwCount(const QModelIndex parent)Method int QSqlQueryModel::rowCount(const QModelIndex &parent)
boolsetHeaderData(int section,
const Qt_Orientation orientation,
const QVariant value)
Method bool QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)
boolsetHeaderData(int section,
const Qt_Orientation orientation,
const QVariant value,
int role)
Method bool QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)
voidsetQuery(const QSqlQuery query)Method void QSqlQueryModel::setQuery(const QSqlQuery &query)
voidsetQuery(string query)Method void QSqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)
voidsetQuery(string query,
const QSqlDatabase db)
Method void QSqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)

Public static methods and constants

QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s)Static method QString QSqlQueryModel::tr(const char *s, const char *c)
stringtr(string s,
string c)
Static method QString QSqlQueryModel::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QSqlQueryModel::tr(const char *s, const char *c, int n)
stringtrUtf8(string s)Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c)
Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c, int n)

Detailed description

[const] bool canFetchMore

Description: Method bool QSqlQueryModel::canFetchMore(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::canFetchMore

[const] bool canFetchMore(const QModelIndex parent)

Description: Method bool QSqlQueryModel::canFetchMore(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::canFetchMore

void clear

Description: Method void QSqlQueryModel::clear()

[const] int columnCount

Description: Method int QSqlQueryModel::columnCount(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::columnCount

[const] int columnCount(const QModelIndex parent)

Description: Method int QSqlQueryModel::columnCount(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::columnCount

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[const] QVariant data(const QModelIndex item)

Description: Method QVariant QSqlQueryModel::data(const QModelIndex &item, int role)

This is a reimplementation of QAbstractTableModel::data

[const] QVariant data(const QModelIndex item,int role)

Description: Method QVariant QSqlQueryModel::data(const QModelIndex &item, int role)

This is a reimplementation of QAbstractTableModel::data

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

void fetchMore

Description: Method void QSqlQueryModel::fetchMore(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::fetchMore

void fetchMore(const QModelIndex parent)

Description: Method void QSqlQueryModel::fetchMore(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::fetchMore

[const] QVariant headerData(int section,const Qt_Orientation orientation)

Description: Method QVariant QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role)

This is a reimplementation of QAbstractTableModel::headerData

[const] QVariant headerData(int section,const Qt_Orientation orientation,int role)

Description: Method QVariant QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role)

This is a reimplementation of QAbstractTableModel::headerData

bool insertColumns(int column,int count)

Description: Method bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::insertColumns

bool insertColumns(int column,int count,const QModelIndex parent)

Description: Method bool QSqlQueryModel::insertColumns(int column, int count, const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::insertColumns

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] QSqlError lastError

Description: Method QSqlError QSqlQueryModel::lastError()

[const] QSqlQuery query

Description: Method QSqlQuery QSqlQueryModel::query()

void query=(const QSqlQuery query)

Description: Method void QSqlQueryModel::setQuery(const QSqlQuery &query)

[const] QSqlRecord record

Description: Method QSqlRecord QSqlQueryModel::record()

[const] QSqlRecord record(int row)

Description: Method QSqlRecord QSqlQueryModel::record(int row)

bool removeColumns(int column,int count)

Description: Method bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::removeColumns

bool removeColumns(int column,int count,const QModelIndex parent)

Description: Method bool QSqlQueryModel::removeColumns(int column, int count, const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::removeColumns

[const] int rowCount

Description: Method int QSqlQueryModel::rowCount(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::rowCount

[const] int rowCount(const QModelIndex parent)

Description: Method int QSqlQueryModel::rowCount(const QModelIndex &parent)

This is a reimplementation of QAbstractTableModel::rowCount

bool setHeaderData(int section,const Qt_Orientation orientation,const QVariant value)

Description: Method bool QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)

This is a reimplementation of QAbstractTableModel::setHeaderData

bool setHeaderData(int section,const Qt_Orientation orientation,const QVariant value,int role)

Description: Method bool QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)

This is a reimplementation of QAbstractTableModel::setHeaderData

void setQuery(const QSqlQuery query)

Description: Method void QSqlQueryModel::setQuery(const QSqlQuery &query)

void setQuery(string query)

Description: Method void QSqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)

void setQuery(string query,const QSqlDatabase db)

Description: Method void QSqlQueryModel::setQuery(const QString &query, const QSqlDatabase &db)

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[static] string tr(string s)

Description: Static method QString QSqlQueryModel::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c)

Description: Static method QString QSqlQueryModel::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QSqlQueryModel::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s)

Description: Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c)

Description: Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QSqlQueryModel::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.