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 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 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.

    "Flow Item properties"

  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.

Available under certain Qt licenses.
Find out more.