The QgsQueryResultModel class is a model for QgsAbstractDatabaseProviderConnection::QueryResult.
More...
#include <qgsqueryresultmodel.h>
|
void | cancel () |
| Cancels the row fetching. More...
|
|
void | rowsReady (const QList< QList< QVariant > > &rows) |
| Triggered when newRows have been fetched and can be added to the model. More...
|
|
◆ QgsQueryResultModel()
◆ ~QgsQueryResultModel()
QgsQueryResultModel::~QgsQueryResultModel |
( |
| ) |
|
◆ cancel
void QgsQueryResultModel::cancel |
( |
| ) |
|
|
slot |
◆ canFetchMore()
bool QgsQueryResultModel::canFetchMore |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ columnCount()
int QgsQueryResultModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ columns()
QStringList QgsQueryResultModel::columns |
( |
| ) |
const |
◆ data()
QVariant QgsQueryResultModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ fetchingComplete
void QgsQueryResultModel::fetchingComplete |
( |
| ) |
|
|
signal |
Emitted when rows have been fetched (all of them or a batch if maxRows
was passed to fetchMoreRows() ) or when the fetching has been stopped (canceled).
- See also
- fetchMoreRows()
◆ fetchingStarted
void QgsQueryResultModel::fetchingStarted |
( |
| ) |
|
|
signal |
Emitted when fetching of rows has started.
◆ fetchMore()
void QgsQueryResultModel::fetchMore |
( |
const QModelIndex & |
parent | ) |
|
|
override |
◆ fetchMoreRows
void QgsQueryResultModel::fetchMoreRows |
( |
qlonglong |
maxRows | ) |
|
|
signal |
Emitted when more rows are requested.
- Parameters
-
maxRows | the number of rows that will be fetched. |
◆ headerData()
QVariant QgsQueryResultModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ queryResult()
◆ rowCount()
int QgsQueryResultModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ rowsReady
void QgsQueryResultModel::rowsReady |
( |
const QList< QList< QVariant > > & |
rows | ) |
|
|
slot |
Triggered when newRows have been fetched and can be added to the model.
Definition at line 39 of file qgsqueryresultmodel.cpp.
The documentation for this class was generated from the following files: