Class: QgsProviderSublayerProxyModel

A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.

Added in version 3.22.

Class Hierarchy

Inheritance diagram of qgis.core.QgsProviderSublayerProxyModel

Base classes

QSortFilterProxyModel

QAbstractProxyModel

QAbstractItemModel

QObject

Methods

filterString

Returns the filter string used for filtering items in the model.

includeEmptyLayers

Returns True if empty tables will be shown in the model.

includeSystemTables

Returns True if system and internal tables will be shown in the model.

setFilterString

Sets the filter string used for filtering items in the model.

setIncludeEmptyLayers

Sets whether empty tables will be shown in the model.

setIncludeSystemTables

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.

Return type:

str

includeEmptyLayers(self) bool[source]

Returns True if empty tables will be shown in the model.

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.

Return type:

bool

setFilterString(self, filter: str | None)[source]

Sets the filter string used for filtering items in the model.

See also

filterString()

Parameters:

filter (Optional[str])

setIncludeEmptyLayers(self, include: bool)[source]

Sets whether empty tables will be shown in the model.

Added in version 3.28.

Parameters:

include (bool)

setIncludeSystemTables(self, include: bool)[source]

Sets whether system and internal tables will be shown in the model.

Parameters:

include (bool)