QWebEngineNotification¶
The QWebEngineNotification
class encapsulates the data of an HTML5 web notification. More…
Synopsis¶
Functions¶
Slots¶
Signals¶
def
closed
()
Detailed Description¶
This class contains the information and API for HTML5 desktop and push notifications.
Web engine notifications are passed to the user through the custom handler provided with the setNotificationPresenter()
call.
For more information about how to handle web notification, see the Notification Example .
- class PySide6.QtWebEngineCore.QWebEngineNotification¶
- PySide6.QtWebEngineCore.QWebEngineNotification.click()¶
Creates and dispatches a JavaScript click event on notification.
Should be called by the notification platform when the notification is activated by the user.
- PySide6.QtWebEngineCore.QWebEngineNotification.close()¶
Creates and dispatches a JavaScript close event on notification.
Should be called by the notification platform when the notification is closed, either by the underlying platform or by the user.
- PySide6.QtWebEngineCore.QWebEngineNotification.closed()¶
- PySide6.QtWebEngineCore.QWebEngineNotification.direction()¶
- Return type
This property holds The text direction for the notification’s title and body..
- PySide6.QtWebEngineCore.QWebEngineNotification.icon()¶
- Return type
Returns the icon to be shown with the notification.
If no icon is set by the sender, a null QImage
is returned.
- PySide6.QtWebEngineCore.QWebEngineNotification.language()¶
- Return type
str
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.
- PySide6.QtWebEngineCore.QWebEngineNotification.matches(other)¶
- Parameters
- Return type
bool
Returns true
if the two notifications belong to the same message chain. That is, if their tag()
and origin()
are the same. This means one is a replacement or an update of the other
.
- PySide6.QtWebEngineCore.QWebEngineNotification.message()¶
- Return type
str
This property holds The body of the notification message..
See also
- PySide6.QtWebEngineCore.QWebEngineNotification.origin()¶
- Return type
This property holds The URL of the page sending the notification..
- PySide6.QtWebEngineCore.QWebEngineNotification.show()¶
Creates and dispatches a JavaScript show event on notification.
Should be called by the notification platform when the notification has been shown to user.
- PySide6.QtWebEngineCore.QWebEngineNotification.tag()¶
- Return type
str
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
- PySide6.QtWebEngineCore.QWebEngineNotification.title()¶
- Return type
str
This property holds The title of the notification..
See also
© 2022 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.