Doc: Describe using the binding editor in the Design mode States pane

...to create when statements

Change-Id: Iec56f6aa76478ca1ffc9803df3dffd4cd7196e65
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Leena Miettinen
2019-12-19 16:38:18 +01:00
parent 4ad3cdc115
commit df60a47cdd
3 changed files with 8 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -79,6 +79,14 @@
To determine when the state should be applied, select
\uicontrol {Set when Condition} in the menu and specify a
\l [QtQuick]{State::when}{when} property for the state.
Set the value of the property to an expression that
evaluates to \c true when you want the state to be applied.
In the binding editor, select the component and property to
create the expression. For example, to change the state when
a button is pressed, you could select a button component and
its pressed property.
\image qtquick-states-binding-editor.png "Binding editor in States pane"
You can preview the states in the \uicontrol States pane and click them to
switch between states on the canvas.