Class: QgsLayoutManagerProxyModel

class qgis.core.QgsLayoutManagerProxyModel(parent: QObject = None)

Bases: PyQt5.QtCore.QSortFilterProxyModel

Constructor for QgsLayoutManagerProxyModel.

QSortFilterProxyModel subclass for QgsLayoutManagerModel

New in version 3.8.

Parameters

parent

class Filter

Bases: int

FilterPrintLayouts = 2
FilterReports = 4
class Filters

Bases: sip.wrapper

QgsLayoutManagerProxyModel.Filters(Union[QgsLayoutManagerProxyModel.Filters, QgsLayoutManagerProxyModel.Filter]) QgsLayoutManagerProxyModel.Filters(QgsLayoutManagerProxyModel.Filters)

baseClass

alias of QgsLayoutManagerProxyModel

beginInsertColumns()
beginInsertRows()
beginMoveColumns()
beginMoveRows()
beginRemoveColumns()
beginRemoveRows()
beginResetModel()
changePersistentIndex()
changePersistentIndexList()
childEvent()
connectNotify()
createIndex()
customEvent()
decodeData()
disconnectNotify()
encodeData()
endInsertColumns()
endInsertRows()
endMoveColumns()
endMoveRows()
endRemoveColumns()
endRemoveRows()
endResetModel()
filterAcceptsColumn()
filterAcceptsRow(self, sourceRow: int, sourceParent: QModelIndex) → bool
Parameters
  • sourceRow (int) –

  • sourceParent (QModelIndex) –

Return type

bool

filterString(self) → str

Returns the current filter string, if set.

New in version 3.12.

Return type

str

filters(self) → QgsLayoutManagerProxyModel.Filters

Returns the current filters used for filtering available layouts.

See also

setFilters()

Return type

QgsLayoutManagerProxyModel.Filters

invalidateFilter()
isSignalConnected()
lessThan(self, left: QModelIndex, right: QModelIndex) → bool
Parameters
  • left (QModelIndex) –

  • right (QModelIndex) –

Return type

bool

persistentIndexList()
receivers()
resetInternalData()
sender()
senderSignalIndex()
setFilterString(self, filter: str)

Sets a filter string, such that only layouts with names containing the specified string will be shown.

See also

filterString()

New in version 3.12.

Parameters

filter (str) –

setFilters(self, filters: Union[QgsLayoutManagerProxyModel.Filters, QgsLayoutManagerProxyModel.Filter])

Sets the current filters used for filtering available layouts.

See also

filters()

Parameters

filters (Union[QgsLayoutManagerProxyModel.Filters) –

timerEvent()