Class: QgsNewsFeedModel

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.

Added in version 3.10.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsNewsFeedModel

Base classes

QAbstractItemModel

QObject

Enums

CustomRole

Custom model roles.

Role

class qgis.core.QgsNewsFeedModel[source]

Bases: QAbstractItemModel

__init__(parser: QgsNewsFeedParser | None, parent: QObject | None = None)

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.

Parameters:
class CustomRole(*values)

Bases: IntEnum

Custom model roles.

Note

Prior to QGIS 3.36 this was available as QgsNewsFeedModel.Role

Added in version 3.36.

  • Key: Entry unique key

  • Title: Entry title

  • Content: Entry content

  • ImageUrl: Optional entry image URL

  • Image: Optional entry image

  • Link: Optional entry URL link

  • Sticky: Whether entry is sticky

Role

alias of CustomRole