Class: QgsProjectStyleDatabaseProxyModel

class qgis.core.QgsProjectStyleDatabaseProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A proxy model for filtering QgsProjectStyleDatabaseModel.

New in version 3.26.

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

class Filter(value)

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(Union[QgsProjectStyleDatabaseProxyModel.Filters, QgsProjectStyleDatabaseProxyModel.Filter])
class Filters(QgsProjectStyleDatabaseProxyModel.Filters)

Bases: sip.wrapper

baseClass

alias of QgsProjectStyleDatabaseProxyModel

beginInsertColumns(self, QModelIndex, int, int)
beginInsertRows(self, QModelIndex, int, int)
beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) bool
beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) bool
beginRemoveColumns(self, QModelIndex, int, int)
beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
createIndex(self, int, int, object: object = 0) QModelIndex
customEvent(self, QEvent)
decodeData(self, int, int, QModelIndex, QDataStream) bool
disconnectNotify(self, QMetaMethod)
encodeData(self, Iterable[QModelIndex], QDataStream)
endInsertColumns(self)
endInsertRows(self)
endMoveColumns(self)
endMoveRows(self)
endRemoveColumns(self)
endRemoveRows(self)
endResetModel(self)
filterAcceptsColumn(self, int, 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, QMetaMethod) bool
lessThan(self, QModelIndex, QModelIndex) bool
persistentIndexList(self) List[QModelIndex]
receivers(self, PYQT_SIGNAL) int
resetInternalData(self)
sender(self) QObject
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, QTimerEvent)