- Qt Design Studio Manual
- Applying States in Flows
- Qt Design Studio Manual 2.3.0

Simulating Conditions ◦ Reacting to External Events

# Applying States in Flows

You can use states in flows to modify the appearance of components in flow items in response to user interaction, for example. For this purpose, you use the Flow Item components available in Library > Components > Flow View.

1. Select File > New File > Qt Quick Files > Flow Item to create a flow item.
2. In States, add states to the flow item.
3. Open the .ui.qml file that contains the flow view in Form Editor and drag the flow item to the flow view in Navigator or Form Editor.
4. Drag an empty Flow Item component from Library > Components > Flow View to the flow for each state that you added.
5. In Properties, in the State change target field, select the flow item that you created using the wizard.

6. In the Target state field, select the state to apply to the flow item.

You can now add action areas and flow decisions to apply the different states.

Simulating Conditions ◦ Reacting to External Events