diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-25 08:13:59 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-25 09:31:56 +0000 |
commit | d58db93950ec61e9a2d14b5a21fcb47f2129de87 (patch) | |
tree | cb9914dc68b9af2268a923d81e97737357a8ab9a | |
parent | ca30731b7b883106c86a679cf051c783f0093e2d (diff) |
Documentation: Link the Qt Widgets Designer custom widget examples
As a drive-by, fix the headlines and remove a dead link.
Pick-to: 6.6
Change-Id: Ifb92c0ac7e02e04f3cffe1cb0cc8ff82e8fd803e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 3cba117184c6fa7965c09baeba27868a86ef63cd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
4 files changed, 9 insertions, 10 deletions
diff --git a/examples/designer/taskmenuextension/doc/taskmenuextension.rst b/examples/designer/taskmenuextension/doc/taskmenuextension.rst index a1b584fb9..dd7fe1679 100644 --- a/examples/designer/taskmenuextension/doc/taskmenuextension.rst +++ b/examples/designer/taskmenuextension/doc/taskmenuextension.rst @@ -1,5 +1,7 @@ -Task Menu Extension (Designer) -============================== +.. _task-menu-extension-example: + +Task Menu Extension Example +=========================== This example shows how to add custom widgets to Qt Designer, which can be launched with `pyside6-designer`, and to extend diff --git a/examples/widgetbinding/doc/widgetbinding.md b/examples/widgetbinding/doc/widgetbinding.md index 759d425a7..6355ea311 100644 --- a/examples/widgetbinding/doc/widgetbinding.md +++ b/examples/widgetbinding/doc/widgetbinding.md @@ -1,7 +1,5 @@ -# WigglyWidget - -The original Qt/C++ example can be found here: -https://doc.qt.io/qt-6/qtwidgets-widgets-wiggly-example.html +(widgetbinding-example)= +# WigglyWidget Example This example shows how to interact with a custom widget from two different ways: diff --git a/sources/pyside6/doc/tools/pyside-designer.rst b/sources/pyside6/doc/tools/pyside-designer.rst index 6dc28ab89..05d7556b1 100644 --- a/sources/pyside6/doc/tools/pyside-designer.rst +++ b/sources/pyside6/doc/tools/pyside-designer.rst @@ -85,8 +85,7 @@ We provide a helper class, ``QPyDesignerCustomWidgetCollection``, to simplify the registration process. If you are interested in all the details of this specific case, you can -check the `example's page`_. +check the :ref:`task-menu-extension-example`. .. _`Qt Widget Designer`: https://doc.qt.io/qt-6/qtdesigner-manual.html .. _`Qt Widget Designer Manual`: https://doc.qt.io/qt-6/qtdesigner-manual.html -.. _`example's page`: https://doc.qt.io/qtforpython-6/examples/example_designer_taskmenuextension.html diff --git a/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst b/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst index c56593ee4..20c66496d 100644 --- a/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst +++ b/sources/pyside6/doc/tutorials/basictutorial/uifiles.rst @@ -220,8 +220,8 @@ Qt for Python provides a simple interface for this which is similar to :meth:`registerCustomWidget()<PySide6.QtUiTools.QUiLoader.registerCustomWidget>`. The widget needs to be provided as a Python module, as shown by -the widgetbinding example (file ``wigglywidget.py``) or -the taskmenuextension example (file ``tictactoe.py``). +the :ref:`widgetbinding-example` (file ``wigglywidget.py``) or +the :ref:`task-menu-extension-example` (file ``tictactoe.py``). Registering this with Qt Designer is done by providing a registration script named ``register*.py`` and pointing |