Class: QgsLayoutManagerProxyModel¶
- class qgis.core.QgsLayoutManagerProxyModel¶
Bases:
PyQt5.QtCore.QSortFilterProxyModel
QSortFilterProxyModel subclass for QgsLayoutManagerModel
New in version 3.8.
QgsLayoutManagerProxyModel(parent: QObject = None) Constructor for QgsLayoutManagerProxyModel.
Methods
beginInsertColumns
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveRows
changePersistentIndex
createIndex
decodeData
- param sourceRow
Returns the current filter string, if set.
Returns the current filters used for filtering available layouts.
- param left
Sets a
filter
string, such that only layouts with names containing the specified string will be shown.Sets the current
filters
used for filtering available layouts.Attributes
- class Filter¶
Bases:
int
- FilterPrintLayouts = 2¶
- FilterReports = 4¶
- class Filters¶
- class Filters(Union[QgsLayoutManagerProxyModel.Filters, QgsLayoutManagerProxyModel.Filter])
- class Filters(QgsLayoutManagerProxyModel.Filters)
Bases:
sip.wrapper
- baseClass¶
alias of
QgsLayoutManagerProxyModel
- QgsLayoutManagerProxyModel.beginInsertColumns(self, QModelIndex, int, int)
- QgsLayoutManagerProxyModel.beginInsertRows(self, QModelIndex, int, int)
- QgsLayoutManagerProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsLayoutManagerProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
- QgsLayoutManagerProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
- QgsLayoutManagerProxyModel.beginRemoveRows(self, QModelIndex, int, int)
- beginResetModel(self)¶
- QgsLayoutManagerProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
- changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])¶
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- QgsLayoutManagerProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
- customEvent(self, QEvent)¶
- QgsLayoutManagerProxyModel.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
- filterString(self) str ¶
Returns the current filter string, if set.
See also
New in version 3.12.
- Return type
str
- filters(self) QgsLayoutManagerProxyModel.Filters ¶
Returns the current filters used for filtering available layouts.
See also
- Return type
- invalidateFilter(self)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- lessThan(self, left: QModelIndex, right: QModelIndex) bool ¶
- Parameters
left (QModelIndex) –
right (QModelIndex) –
- Return type
bool
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, PYQT_SIGNAL) int ¶
- resetInternalData(self)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFilterString(self, filter: str)¶
Sets a
filter
string, such that only layouts with names containing the specified string will be shown.See also
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
- Parameters
filters (Union[QgsLayoutManagerProxyModel.Filters) –
- timerEvent(self, QTimerEvent)¶