Class: QgsProviderSublayerProxyModel¶
A QSortFilterProxyModel for filtering and sorting a
QgsProviderSublayerModel
.
Added in version 3.22.
Class Hierarchy¶
Base classes¶
Methods
Returns the filter string used for filtering items in the model. |
|
Returns |
|
Returns |
|
Sets the filter string used for filtering items in the model. |
|
Sets whether empty tables will be shown in the model. |
|
Sets whether system and internal tables will be shown in the model. |
- class qgis.core.QgsProviderSublayerProxyModel[source]¶
Bases:
QSortFilterProxyModel
- __init__(parent: QObject | None = None)
Constructor for QgsProviderSublayerProxyModel, with the specified
parent
object.- Parameters:
parent (Optional[QObject] = None)
- filterString(self) str [source]¶
Returns the filter string used for filtering items in the model.
See also
- Return type:
str
- includeEmptyLayers(self) bool [source]¶
Returns
True
if empty tables will be shown in the model.See also
Added in version 3.28.
- Return type:
bool
- includeSystemTables(self) bool [source]¶
Returns
True
if system and internal tables will be shown in the model.See also
- Return type:
bool
- setFilterString(self, filter: str | None)[source]¶
Sets the
filter
string used for filtering items in the model.See also
- Parameters:
filter (Optional[str])
- setIncludeEmptyLayers(self, include: bool)[source]¶
Sets whether empty tables will be shown in the model.
See also
Added in version 3.28.
- Parameters:
include (bool)