Class: QgsProjectStyleDatabaseProxyModel

class qgis.core.QgsProjectStyleDatabaseProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A proxy model for filtering QgsProjectStyleDatabaseModel.

Added in version 3.26.

QgsProjectStyleDatabaseProxyModel(model: Optional[QgsProjectStyleDatabaseModel], parent: Optional[QObject] = None) Constructor for QgsProjectStyleDatabaseProxyModel, for the specified style database model.

class Filter(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: enum.IntEnum

Available filter flags for filtering the model

  • FilterHideReadOnly: Hide read-only style databases

FilterHideReadOnly = 1
baseClass

alias of QgsProjectStyleDatabaseProxyModel

class Filters
class Filters(f: QgsProjectStyleDatabaseProxyModel.Filters | QgsProjectStyleDatabaseProxyModel.Filter)
class Filters(a0: QgsProjectStyleDatabaseProxyModel.Filters)

Bases: sip.wrapper

baseClass

alias of QgsProjectStyleDatabaseProxyModel

beginInsertColumns(self, parent: QModelIndex, first: int, last: int)
beginInsertRows(self, parent: QModelIndex, first: int, last: int)
beginMoveColumns(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationColumn: int) bool
beginMoveRows(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationRow: int) bool
beginRemoveColumns(self, parent: QModelIndex, first: int, last: int)
beginRemoveRows(self, parent: QModelIndex, first: int, last: int)
beginResetModel(self)
changePersistentIndex(self, from_: QModelIndex, to: QModelIndex)
changePersistentIndexList(self, from_: Iterable[QModelIndex], to: Iterable[QModelIndex])
childEvent(self, a0: QChildEvent | None)
connectNotify(self, signal: QMetaMethod)
createIndex(self, row: int, column: int, object: Any = None) QModelIndex
customEvent(self, a0: QEvent | None)
decodeData(self, row: int, column: int, parent: QModelIndex, stream: QDataStream) bool
disconnectNotify(self, signal: QMetaMethod)
encodeData(self, indexes: Iterable[QModelIndex], stream: QDataStream)
endInsertColumns(self)
endInsertRows(self)
endMoveColumns(self)
endMoveRows(self)
endRemoveColumns(self)
endRemoveRows(self)
endResetModel(self)
filterAcceptsColumn(self, source_column: int, source_parent: QModelIndex) bool
filterAcceptsRow(self, sourceRow: int, sourceParent: QModelIndex) bool
Parameters:
  • sourceRow (int)

  • sourceParent (QModelIndex)

Return type:

bool

filters(self) QgsProjectStyleDatabaseProxyModel.Filters

Returns the current filters used for filtering available style.

See also

setFilters()

Return type:

QgsProjectStyleDatabaseProxyModel.Filters

invalidateFilter(self)
isSignalConnected(self, signal: QMetaMethod) bool
lessThan(self, left: QModelIndex, right: QModelIndex) bool
persistentIndexList(self) List[QModelIndex]
receivers(self, signal: PYQT_SIGNAL) int
resetInternalData(self)
sender(self) QObject | None
senderSignalIndex(self) int
setFilters(self, filters: QgsProjectStyleDatabaseProxyModel.Filters | QgsProjectStyleDatabaseProxyModel.Filter)

Sets the current filters used for filtering available styles.

See also

filters()

Parameters:

filters (Union[QgsProjectStyleDatabaseProxyModel.Filters)

timerEvent(self, a0: QTimerEvent | None)