Class: QgsLayoutGuideProxyModel

class qgis.core.QgsLayoutGuideProxyModel(parent: QObject, orientation: Qt.Orientation, page: int)

Bases: PyQt5.QtCore.QSortFilterProxyModel

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

Page numbers begin at 0.

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

Methods

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

param sourceRow

invalidateFilter

isSignalConnected

lessThan

param left

persistentIndexList

receivers

resetInternalData

sender

senderSignalIndex

setPage

Sets the current page for filtering matching guides.

timerEvent

QgsLayoutGuideProxyModel.beginInsertColumns(self, QModelIndex, int, int)
QgsLayoutGuideProxyModel.beginInsertRows(self, QModelIndex, int, int)
QgsLayoutGuideProxyModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsLayoutGuideProxyModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsLayoutGuideProxyModel.beginRemoveColumns(self, QModelIndex, int, int)
QgsLayoutGuideProxyModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
QgsLayoutGuideProxyModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
QgsLayoutGuideProxyModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
QgsLayoutGuideProxyModel.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

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
setPage(self, page: int)

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

Parameters

page (int) –

timerEvent(self, QTimerEvent)