Class: QgsAbstractDbTableModel¶
The QgsAbstractDbTableModel
class is a pure virtual model
class for results in a database source widget selector
Added in version 3.24.
Class Hierarchy¶
Base classes¶
Methods
Returns the list of columns in the table |
|
Returns the index of the column used by default to filter the results (probably the table name column if it exists) |
|
Returns if the column should be searchable at the given index |
|
Sets an sql statement that belongs to a cell specified by a model index |
- class qgis.core.QgsAbstractDbTableModel[source]¶
Bases:
QStandardItemModel
- __init__(parent: QObject | None = None)
Constructor
- Parameters:
parent (Optional[QObject] = None)
- defaultSearchColumn(self) int [source]¶
Returns the index of the column used by default to filter the results (probably the table name column if it exists)
- Return type:
int