Class: QgsQueryResultModel¶
The QgsQueryResultModel class is a model for
QgsAbstractDatabaseProviderConnection.QueryResult
Added in version 3.18.
Class Hierarchy¶
Base classes¶
Methods
Cancels the row fetching.  | 
|
Returns the column names  | 
|
Returns the query result  | 
|
Triggered when newRows have been fetched and can be added to the model.  | 
Signals
Emitted when more rows are requested.  | 
|
Emitted when rows have been fetched (all of them or a batch if maxRows was passed to   | 
|
Emitted when fetching of rows has started  | 
- class qgis.core.QgsQueryResultModel[source]¶
 Bases:
QAbstractTableModel- __init__(queryResult: QgsAbstractDatabaseProviderConnection.QueryResult, parent: QObject | None = None)
 Constructs a QgsQueryResultModel from a
queryResultwith optionalparent- Parameters:
 queryResult (QgsAbstractDatabaseProviderConnection.QueryResult)
parent (Optional[QObject] = None)
- signal fetchMoreRows(maxRows: int)[source]¶
 Emitted when more rows are requested.
- Parameters:
 maxRows (int) – the number of rows that will be fetched.
- signal fetchingComplete[source]¶
 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
- queryResult(self) QgsAbstractDatabaseProviderConnection.QueryResult[source]¶
 Returns the query result
Added in version 3.22.
- Return type: