This class was introduced in Qt 5.13.
|bool||matches(const QWebEngineNotification *other) const|
This class contains the information and API for HTML5 desktop and push notifications.
Web engine notifications are passed to the user in the QWebEngineProfile::setNotificationPresenter() and QQuickWebEngineProfile::presentNotification() calls and the WebEngineProfile::presentNotification() signal.
direction : const Qt::LayoutDirection
This property holds the text direction for the notification's title and body.
language : const QString
This property holds the primary language for the notification's title and body.
Its value is a valid BCP 47 language tag, or the empty string.
message : const QString
This property holds the body of the notification message.
See also title().
origin : const QUrl
This property holds the URL of the page sending the notification.
tag : const QString
This property holds the tag of the notification message.
New notifications that have the same tag and origin URL as an existing one should replace or update the old notification with the same tag.
See also matches().
title : const QString
This property holds the title of the notification.
See also message().
Member Function Documentation
Should be called by the notification platform when the notification is activated by the user.
Should be called by the notification platform when the notification is closed, either by the underlying platform or by the user.
This signal is emitted when the web page calls close steps for the notification, and it no longer needs to be shown.
Should be called by the notification platform when the notification has been shown to user.
QImage QWebEngineNotification::icon() const
Returns the icon to be shown with the notification.
If no icon is set by the sender, a null QImage is returned.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.