Class: QgsBrowserProxyModel¶
-
class
qgis.core.
QgsBrowserProxyModel
(parent: QObject = None)¶ Bases:
PyQt5.QtCore.QSortFilterProxyModel
Constructor for QgsBrowserProxyModel, with the specified
parent
object.A QSortFilterProxyModel subclass for filtering and sorting browser model items.
New in version 3.4: Enums
Methods
Returns the underlying browser model.
Returns whether item filtering is case sensitive.
Returns the data item at the specified proxy
index
, or a None if no item exists at the index.Returns true if the model is filtered by map layer type.
Returns the filter string used when filtering items in the model.
Returns the filter syntax.
Returns the layer type to filter the model by.
Sets the underlying browser
model
.Sets whether the model is filtered by map layer type.
Sets whether item filtering should be case sensitive.
Sets the
filter
string to use when filtering items in the model.Sets the filter
syntax
.Sets the layer
type
to filter the model by.Signals
Attributes
-
class
FilterSyntax
¶ Bases:
int
-
Normal
= 0¶
-
RegularExpression
= 2¶
-
Wildcards
= 1¶
-
beginInsertColumns
()¶
-
beginInsertRows
()¶
-
beginMoveColumns
()¶
-
beginMoveRows
()¶
-
beginRemoveColumns
()¶
-
beginRemoveRows
()¶
-
beginResetModel
()¶
-
browserModel
(self) → QgsBrowserModel¶ Returns the underlying browser model.
See also
-
caseSensitivity
(self) → Qt.CaseSensitivity¶ Returns whether item filtering is case sensitive.
See also
-
changePersistentIndex
()¶
-
changePersistentIndexList
()¶
-
childEvent
()¶
-
connectNotify
()¶
-
createIndex
()¶
-
customEvent
()¶
-
dataItem
(self, index: QModelIndex) → QgsDataItem¶ Returns the data item at the specified proxy
index
, or a None if no item exists at the index.
-
decodeData
()¶
-
disconnectNotify
()¶
-
encodeData
()¶
-
endInsertColumns
()¶
-
endInsertRows
()¶
-
endMoveColumns
()¶
-
endMoveRows
()¶
-
endRemoveColumns
()¶
-
endRemoveRows
()¶
-
endResetModel
()¶
-
filterAcceptsColumn
()¶
-
filterAcceptsRow
(self, sourceRow: int, sourceParent: QModelIndex) → bool¶
-
filterByLayerType
(self) → bool¶ Returns true if the model is filtered by map layer type.
See also
See also
-
filterString
(self) → str¶ Returns the filter string used when filtering items in the model.
See also
-
filterSyntax
(self) → QgsBrowserProxyModel.FilterSyntax¶ Returns the filter syntax.
See also
-
invalidateFilter
()¶
-
isSignalConnected
()¶
-
layerType
(self) → QgsMapLayer.LayerType¶ Returns the layer type to filter the model by. This is only used if filterByLayerType() is true.
See also
See also
-
lessThan
()¶
-
persistentIndexList
()¶
-
receivers
()¶
-
resetInternalData
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setBrowserModel
(self, model: QgsBrowserModel)¶ Sets the underlying browser
model
.See also
-
setFilterByLayerType
(self, enabled: bool)¶ Sets whether the model is filtered by map layer type.
See also
See also
-
setFilterCaseSensitivity
(self, sensitivity: Qt.CaseSensitivity)¶ Sets whether item filtering should be case sensitive.
See also
-
setFilterString
(self, filter: str)¶ Sets the
filter
string to use when filtering items in the model.See also
-
setFilterSyntax
(self, syntax: QgsBrowserProxyModel.FilterSyntax)¶ Sets the filter
syntax
.See also
-
setLayerType
(self, type: QgsMapLayer.LayerType)¶ Sets the layer
type
to filter the model by. This is only used if filterByLayerType() is true.See also
See also
-
timerEvent
()¶
-
class