diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-01-13 09:27:08 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-01-13 09:27:08 +0100 |
commit | f6113eec0c731246e537215b0661548317d44803 (patch) | |
tree | 0c2679c7442d3920f7da48505fd0c3c5639206aa /doc | |
parent | dee41be2aba2ed9ebf04a32e66a695824256a9aa (diff) | |
parent | df60a47cdd0d41e9589ae86a68e212303ab5fd4e (diff) | |
download | qt-creator-f6113eec0c731246e537215b0661548317d44803.tar.gz |
Merge remote-tracking branch 'origin/4.11'
Change-Id: I7b4672813b1c0909bf82623a4caacd4a26166da0
Diffstat (limited to 'doc')
-rw-r--r-- | doc/images/qmldesigner-transitions.png | bin | 3229 -> 5169 bytes | |||
-rw-r--r-- | doc/images/qtquick-states-binding-editor.png | bin | 0 -> 3422 bytes | |||
-rw-r--r-- | doc/src/qtquick/qtquick-states.qdoc | 8 |
3 files changed, 8 insertions, 0 deletions
diff --git a/doc/images/qmldesigner-transitions.png b/doc/images/qmldesigner-transitions.png Binary files differindex f3599b7ca6..8d7309ddc8 100644 --- a/doc/images/qmldesigner-transitions.png +++ b/doc/images/qmldesigner-transitions.png diff --git a/doc/images/qtquick-states-binding-editor.png b/doc/images/qtquick-states-binding-editor.png Binary files differnew file mode 100644 index 0000000000..57be12f0ec --- /dev/null +++ b/doc/images/qtquick-states-binding-editor.png diff --git a/doc/src/qtquick/qtquick-states.qdoc b/doc/src/qtquick/qtquick-states.qdoc index 58a02677f6..5a40828f76 100644 --- a/doc/src/qtquick/qtquick-states.qdoc +++ b/doc/src/qtquick/qtquick-states.qdoc @@ -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. |