diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-08-05 15:43:24 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-08-05 17:08:13 +0200 |
| commit | dec5b616f6ef215d415686e8ac3c0eeca6550ad5 (patch) | |
| tree | 925efa742142381faf804acc1d34ab646311b3b4 /sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst | |
| parent | b32183d2cd5fbbd1ac6a53827edf5d40428855ff (diff) | |
Python-QML integration tutorial: Streamline Python code
In the emphasized lines, fix an offset introduced
by 50061290756323ff339bd0473e67117c8191d130.
Pick-to: 6.7
Task-number: PYSIDE-2833
Change-Id: I4ea1eb6b520179c0d425bdb74eaae7663ce89125
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst')
| -rw-r--r-- | sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst index ff6fe3e31..925684e26 100644 --- a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst +++ b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst @@ -29,7 +29,7 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 63-76 + :lines: 52-67 :emphasize-lines: 4,9 Notice that we only need a :code:`QQmlApplicationEngine` to @@ -40,8 +40,8 @@ application and PySide6 integration: .. literalinclude:: main.py :linenos: - :lines: 14-54 - :emphasize-lines: 3,4,7 + :lines: 14-49 + :emphasize-lines: 4,5,8 Notice that the registration happens thanks to the :code:`QmlElement` decorator, that underneath uses the reference to the :code:`Bridge` |
