forked from qt-creator/qt-creator
Doc: Update info about the binding editor
Change-Id: I78e8a1c090b01f8062109928305f391b1b8b49be Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
BIN
doc/images/icons/action-icon-binding.png
Normal file
BIN
doc/images/icons/action-icon-binding.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 417 B |
BIN
doc/images/icons/action-icon.png
Normal file
BIN
doc/images/icons/action-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 273 B |
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 11 KiB |
@@ -170,20 +170,27 @@
|
||||
|
||||
Property bindings are created implicitly in QML whenever a property is
|
||||
assigned a JavaScript expression. To set JavaScript expressions as values
|
||||
of properties in the Design mode, select the \uicontrol Settings menu next to
|
||||
a property, and then select \uicontrol {Set Binding}.
|
||||
of properties in the Design mode, select the
|
||||
\inlineimage icons/action-icon.png
|
||||
(\uicontrol Actions) menu next to a property, and then select
|
||||
\uicontrol {Set Binding}.
|
||||
|
||||
\image qmldesigner-set-expression.png "Type properties context menu"
|
||||
|
||||
The \uicontrol {Binding Editor} supports code completion. Start typing a
|
||||
In the \uicontrol {Binding Editor}, select an item and a property from
|
||||
lists of available items and their properties.
|
||||
|
||||
\image qmldesigner-binding-editor.png "Binding Editor"
|
||||
|
||||
Alternatively, start typing a
|
||||
string and press \key Ctrl+Space to display a list of properties, IDs, and
|
||||
code snippets. When you enter a period (.) after a property name, a list of
|
||||
available values is displayed. Press \key Enter to accept the first
|
||||
suggestion in the list and to complete the code.
|
||||
|
||||
\image qmldesigner-binding-editor.png "Binding Editor"
|
||||
|
||||
To remove bindings, select \uicontrol Reset in the context menu.
|
||||
When a binding is set, the \uicontrol Actions menu icon changes to
|
||||
\inlineimage icons/action-icon-binding
|
||||
. To remove bindings, select \uicontrol Reset in the \uicontrol Actions menu.
|
||||
|
||||
You can set bindings also in the \uicontrol Connections view. For more
|
||||
information, see \l {Adding Bindings Between Properties}.
|
||||
|
@@ -46,9 +46,9 @@
|
||||
\uicontrol Properties pane, and enter the name of another QML type in the
|
||||
field. If you have specified properties for the item that are not supported
|
||||
for the new type, the type cannot be changed and an error message is
|
||||
displayed. Select the \uicontrol Settings menu next to the property name, and
|
||||
then select \uicontrol Reset to remove the property values before trying
|
||||
again.
|
||||
displayed. Select the \inlineimage icons/action-icon.png
|
||||
(\uicontrol Actions) menu next to the property name, and then select
|
||||
\uicontrol Reset to remove the property values before trying again.
|
||||
|
||||
To modify the common properties of multiple items simultaneously, select
|
||||
them in the \uicontrol Navigator or on the canvas:
|
||||
|
Reference in New Issue
Block a user