Class: QgsValidityCheckResultsModel

class qgis.gui.QgsValidityCheckResultsModel

Bases: PyQt5.QtCore.QAbstractItemModel

A QAbstractItemModel subclass for displaying the results from a QgsAbtractValidityCheck.

New in version 3.6.

QgsValidityCheckResultsModel(results: Iterable[QgsValidityCheckResult], parent: QObject = None) Constructor for QgsValidityCheckResultsModel, showing the specified list of checks results.

Methods

beginInsertColumns

beginInsertRows

beginMoveColumns

beginMoveRows

beginRemoveColumns

beginRemoveRows

beginResetModel

changePersistentIndex

changePersistentIndexList

childEvent

columnCount

param parent

connectNotify

createIndex

customEvent

data

param index

decodeData

disconnectNotify

encodeData

endInsertColumns

endInsertRows

endMoveColumns

endMoveRows

endRemoveColumns

endRemoveRows

endResetModel

index

param row

isSignalConnected

parent

param child

persistentIndexList

receivers

resetInternalData

rowCount

param parent

sender

senderSignalIndex

timerEvent

Attributes

DescriptionRole

DescriptionRole = 257
class Roles

Bases: int

QgsValidityCheckResultsModel.beginInsertColumns(self, QModelIndex, int, int)
QgsValidityCheckResultsModel.beginInsertRows(self, QModelIndex, int, int)
QgsValidityCheckResultsModel.beginMoveColumns(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsValidityCheckResultsModel.beginMoveRows(self, QModelIndex, int, int, QModelIndex, int) -> bool
QgsValidityCheckResultsModel.beginRemoveColumns(self, QModelIndex, int, int)
QgsValidityCheckResultsModel.beginRemoveRows(self, QModelIndex, int, int)
beginResetModel(self)
QgsValidityCheckResultsModel.changePersistentIndex(self, QModelIndex, QModelIndex)
changePersistentIndexList(self, Iterable[QModelIndex], Iterable[QModelIndex])
childEvent(self, QChildEvent)
columnCount(self, parent: QModelIndex)int
Parameters

parent (QModelIndex) –

Return type

int

connectNotify(self, QMetaMethod)
QgsValidityCheckResultsModel.createIndex(self, int, int, object: object = 0) -> QModelIndex
customEvent(self, QEvent)
data(self, index: QModelIndex, role: int)Any
Parameters
  • index (QModelIndex) –

  • role (int) –

Return type

Any

QgsValidityCheckResultsModel.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)
index(self, row: int, column: int, parent: QModelIndex)QModelIndex
Parameters
  • row (int) –

  • column (int) –

  • parent (QModelIndex) –

Return type

QModelIndex

isSignalConnected(self, QMetaMethod)bool
parent(self, child: QModelIndex)QModelIndex
Parameters

child (QModelIndex) –

Return type

QModelIndex

persistentIndexList(self)List[QModelIndex]
receivers(self, PYQT_SIGNAL)int
resetInternalData(self)
rowCount(self, parent: QModelIndex = QModelIndex())int
Parameters

parent (QModelIndex = QModelIndex()) –

Return type

int

sender(self)QObject
senderSignalIndex(self)int
timerEvent(self, QTimerEvent)