Class: QgsNewsFeedProxyModel

class qgis.core.QgsNewsFeedProxyModel(parser: QgsNewsFeedParser, parent: QObject = None)

Bases: PyQt5.QtCore.QSortFilterProxyModel

Constructor for QgsNewsFeedProxyModel, with the specified parent object.

The parser argument must specify a valid QgsNewsFeedParser object, which must exist for the lifetime of this model.

A proxy model for use with QgsNewsFeedModel.

QgsNewsFeedProxyModel applies custom sorting to the entries in a QgsNewsFeedModel.

New in version 3.10.

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