forked from qt-creator/qt-creator
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:
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
doc/images/qtquick-states-binding-editor.png
Normal file
BIN
doc/images/qtquick-states-binding-editor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@@ -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.
|
||||
|
Reference in New Issue
Block a user