Class: QgsLayoutGuideProxyModel

Filters QgsLayoutGuideCollection models to guides of a single orientation (horizontal or vertical).

Class Hierarchy

Inheritance diagram of qgis.core.QgsLayoutGuideProxyModel

Base classes

QSortFilterProxyModel

QAbstractProxyModel

QAbstractItemModel

QObject

Methods

setPage

Sets the current page for filtering matching guides.

class qgis.core.QgsLayoutGuideProxyModel[source]

Bases: QSortFilterProxyModel

__init__(parent: QObject | None, orientation: Qt.Orientation, page: int)

Constructor for QgsLayoutGuideProxyModel, filtered to guides of the specified orientation and page only.

Page numbers begin at 0.

Parameters:
  • parent (Optional[QObject])

  • orientation (Qt.Orientation)

  • page (int)

setPage(self, page: int)[source]

Sets the current page for filtering matching guides. Page numbers begin at 0.

Parameters:

page (int)