Class: QgsNewsFeedModel

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

Bases: PyQt5.QtCore.QAbstractItemModel

Constructor for QgsNewsFeedModel, with the specified parent object.

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

A model for published QGIS news feeds.

This class is designed to work with QgsNewsFeedParser, for displaying feeds from a https://github.com/elpaso/qgis-feed server instance.

Content = 259
Image = 261
ImageUrl = 260
Key = 257
class Role

Bases: int

Sticky = 263
Title = 258
beginInsertColumns()
beginInsertRows()
beginMoveColumns()
beginMoveRows()
beginRemoveColumns()
beginRemoveRows()
beginResetModel()
changePersistentIndex()
changePersistentIndexList()
childEvent()
columnCount(self, parent: QModelIndex = QModelIndex()) → int
connectNotify()
createIndex()
customEvent()
data(self, index: QModelIndex, role: int) → Any
decodeData()
disconnectNotify()
encodeData()
endInsertColumns()
endInsertRows()
endMoveColumns()
endMoveRows()
endRemoveColumns()
endRemoveRows()
endResetModel()
flags(self, index: QModelIndex) → Qt.ItemFlags
index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) → QModelIndex
isSignalConnected()
parent(self, index: QModelIndex) → QModelIndex
persistentIndexList()
receivers()
resetInternalData()
rowCount(self, parent: QModelIndex = QModelIndex()) → int
sender()
senderSignalIndex()
timerEvent()