Class: QgsLocatorProxyModel

class qgis.core.QgsLocatorProxyModel

Bases: PyQt5.QtCore.QSortFilterProxyModel

A sort proxy model for QgsLocatorModel, which automatically sorts results by precedence.

New in version 3.0.

QgsLocatorProxyModel(parent: QObject = None) Constructor for QgsLocatorProxyModel, with the specified parent object.

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