From 5aa720f6a9c8148880882565def6ab02e5af78b5 Mon Sep 17 00:00:00 2001 From: Vikas Pachdha Date: Wed, 12 Jul 2023 22:23:45 +0200 Subject: [PATCH] Docs: Document snippets for QtBridge plugins Fixes: QDS-10177 Change-Id: Ibede8ffcaef6251c32cd78f7a90fb2f56f3a0824 Reviewed-by: Thomas Hartmann Reviewed-by: Pranta Ghosh Dastider --- .../src/qtbridge/qtbridge-xd-using.qdoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/qtdesignstudio/src/qtbridge/qtbridge-xd-using.qdoc b/doc/qtdesignstudio/src/qtbridge/qtbridge-xd-using.qdoc index 904d9fdb916..911553c1f73 100644 --- a/doc/qtdesignstudio/src/qtbridge/qtbridge-xd-using.qdoc +++ b/doc/qtdesignstudio/src/qtbridge/qtbridge-xd-using.qdoc @@ -123,6 +123,17 @@ antialiasing : true width: parent.width / 2 \endcode + \li In the \uicontrol {Snippet} field, specify component to be added as child under this + component. + Following example adds a Connection component: + \code + Connections { + target: myItem + onVisibleChanged: console.log(original_Text.visible) + } + \endcode + \note The code must have a scope of a component(e.g. Item, MouseArea, Connections etc.) + with a valid syntax for \l {UI Files}. \li Select the \uicontrol Clip check box to enable clipping in the component generated from the layer. The generated component will clip its own painting, as well as the painting of its children, to its