PySide6.QtWebChannel¶
W |
Detailed Description¶
Bridges the gap between Qt applications and HTML/JavaScript.
Qt WebChannel enables peer-to-peer communication between a server (QML/Python application) and a client (HTML/JavaScript or QML application). It is supported out of the box by Qt WebEngine . In addition it can work on all browsers that support WebSockets , enabling Qt WebChannel clients to run in any JavaScript environment (including QML). This requires the implementation of a custom transport based on Qt WebSockets.
The module provides a JavaScript library for seamless integration of Python and QML applications with HTML/JavaScript and QML clients. The clients must use the JavaScript library to access the serialized QObjects published by the host applications.
Getting Started¶
To include the definitions of modules classes, use the following directive:
import PySide6.QtWebChannel
API Reference¶
The module also provides QML types .
© 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.