Doc: Update Applying States in Flows

Fixes: QDS-11506
Change-Id: Ic2e9993b96cf9ecc3f40fc9701f9044945610a99
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
This commit is contained in:
Teea Poldsam
2024-04-30 10:01:52 +03:00
committed by Teea Põldsam
parent 25f8081032
commit 8ed54cb3a8
3 changed files with 21 additions and 19 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -604,32 +604,34 @@
\title Applying States in Flows \title Applying States in Flows
You can use \l{Working with States}{states} in flows to modify the appearance Use \l{Working with States}{states} in flows to modify how the \l{glossary-component}
of \l{glossary-component}{components} in flow items in response to user {component} properties change in flow items. For this purpose, use the \uicontrol {Flow Item}
interaction, for example. For this purpose, you use the component available in \uicontrol Components > \uicontrol {Flow View}.
\uicontrol {Flow Item} components available in
\uicontrol Components > \uicontrol {Flow View}. To apply states in flows:
\list 1 \list 1
\li Select \uicontrol File > \uicontrol {New File} > \li Select \uicontrol File > \uicontrol {New File} >
\uicontrol {Qt Quick Files} > \uicontrol {Qt Quick Files} >
\uicontrol {Flow Item} to create a flow item. \uicontrol {Flow Item} to create a flow item.
\li In \l States, add states to the flow item. \li In the \l States view, add states to the flow item.
\li Open the .ui.qml file that contains the \l{Adding Flow Views} \li In the \l Projects view, open the .ui.qml file that contains the \l{Adding Flow Views}
{flow view} in the \l {2D} view and drag the flow item to the {flow view}, and drag the flow item from \uicontrol Components >
flow view in the \l Navigator or \l {2D} view. \uicontrol {My Components} to the flow view in the \l Navigator or \l 2D view.
\li Drag an empty \uicontrol {Flow Item} component from \li From \uicontrol Components > \uicontrol {Flow View}, drag an empty
\uicontrol Components > \uicontrol {Flow View} \uicontrol {Flow Item} component (1) to the flow view for each state that you added.
to the flow for each state that you added. \image studio-flow-item-component.webp "Flow Item in the Components view."
\li In \l Properties, in the \uicontrol {State change target} \li In the \uicontrol Navigator or \uicontrol 2D view, select an empty
field, select the flow item that you created using the wizard. \uicontrol {Flow Item} to open the \l Properties view.
\image studio-flow-item-properties.png "Flow Item properties" \li In the \uicontrol {State change target} field, select the flow item that you created
\li In the \uicontrol {Target state} field, select the state to using the wizard.
apply to the flow item. \li In the \uicontrol {Target state} field, select the state to apply to the flow item.
\image studio-flow-states-item-properties.webp "Flow Item properties"
\endlist \endlist
You can now add \l{Adding Action Areas and Transitions}{action areas} and To apply the different states to your application flow, add
\l{Simulating Conditions}{flow decisions} to apply the different states. \l{Adding Action Areas and Transitions}{action areas} and
\l{Simulating Conditions}{flow decisions} to the flow items.
*/ */
/*! /*!