diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-07-23 16:54:48 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-07-31 14:35:25 +0200 |
| commit | b2b01c5b18465ee6ac1b42705eb2df22a69cc9ab (patch) | |
| tree | 9b5b61ec15dc304b3af0238654c9e6ea153552a5 /sources/pyside6/doc/extras | |
| parent | d23c162a5734bb5024fc4e10e85788a7385238de (diff) | |
Add QtWebView
[ChangeLog][PySide6] QtWebView has been added.
Pick-to: 6.5 6.7
Task-number: PYSIDE-2825
Change-Id: I4617cb6b170b37c232ba55aa8be374f150604105
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/extras')
| -rw-r--r-- | sources/pyside6/doc/extras/QtWebView.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sources/pyside6/doc/extras/QtWebView.rst b/sources/pyside6/doc/extras/QtWebView.rst new file mode 100644 index 000000000..1b029ac0d --- /dev/null +++ b/sources/pyside6/doc/extras/QtWebView.rst @@ -0,0 +1,25 @@ + +Qt WebView lets you display web content inside a QML application. To avoid including a full web +browser stack, Qt WebView uses native APIs where appropriate. + +Getting Started +^^^^^^^^^^^^^^^ + +To include the definitions of modules classes, use the following +directive: + + :: + + from PySide6.QtWebView import QtWebView + +To make the Qt WebView module function correctly across all platforms, it's +necessary to call ``QtWebView.initialize()`` before creating the QGuiApplication +instance and before window's QPlatformOpenGLContext is created. For usage, +see the ``minibrowser`` example in the PySide6 examples package. + +API Reference +^^^^^^^^^^^^^ + + * `Qt API <https://doc.qt.io/qt-6/qtwebview-index.html>`_ + +The module also provides `QML types <https://doc.qt.io/qt-6/qtwebview-index.html#qml-api>`_ |
