From 5a9505d7b8f19b2e6e20ef6844e7d5f7bce4bda5 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 2 Jul 2019 11:44:02 +0200 Subject: [PATCH] Doc: Add info about dynamic properties Change-Id: I366cefbee393b44afb4ef0fa5a8ab978eb0d5c69 Reviewed-by: Thomas Hartmann --- .../qtquick-connection-editor-properties.qdoc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/src/qtquick/qtquick-connection-editor-properties.qdoc b/doc/src/qtquick/qtquick-connection-editor-properties.qdoc index 7b6168dc788..651c224a18d 100644 --- a/doc/src/qtquick/qtquick-connection-editor-properties.qdoc +++ b/doc/src/qtquick/qtquick-connection-editor-properties.qdoc @@ -31,10 +31,19 @@ \title Specifying Dynamic Properties - You can bind object properties to dynamic expressions to define global - properties for an object that can be read by other objects. For example, - you can specify global properties for the root object that you can use in - the child objects. + In addition to the properties predefined for QML types, you can specify + \e {dynamic properties} to add properties that would not otherwise + exist for a particular type. You bind the properties to dynamic expressions + to define global properties for an object that can be read by other objects. + For example, you can specify global properties for the root object that you + can use in the child objects. + + For example, to specify spacing between UI elements, you could define a + margin for an object of a QML type that does not have a margin property, + and then use bindings to refer to the value of the margin property from + other objects. + + Similarly, you can add dynamic properties at component level. You can specify dynamic properties for objects in the \uicontrol Connections view. @@ -55,7 +64,7 @@ \li Double-click the value in the \uicontrol {Property Type} column to specify the type of the property. \li Double-click the value in the \uicontrol {Property Value} column - to specify the value of the property. + to specify a dynamic expression as the value of the property. \endlist */