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.
Class Hierarchy¶
Base classes¶
Enums
Custom model roles. |
|
alias of |
- 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 validQgsNewsFeedParser
object, which must exist for the lifetime of this model.- Parameters:
parser (Optional[QgsNewsFeedParser])
parent (Optional[QObject] = None)
- 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 keyTitle
: Entry titleContent
: Entry contentImageUrl
: Optional entry image URLImage
: Optional entry imageLink
: Optional entry URL linkSticky
: Whether entry is sticky
- Role¶
alias of
CustomRole