The States view displays the different states of a UI.

"States view"

To open the States view, select View > Views > States.

To collapse or expand the States view, select:

  • Select View > Views > Toggle States.
  • Press Ctr+Alt+S on Windows or Cmd+Option+S on macOS.
  • Right-click the view and select Collapse or Expand.

Initially, States displays a base state that shows the selected component in its initial state. To add states, select Create New State.

For more information, watch the following video:

Summary of States View Actions

To open the Actions menu, select . The actions available in the menu depend on the current context. For example, the option for editing an annotation becomes available after you add an annotation.

ActionPurposeRead More
Set when ConditionDetermines when a state should be applied.Applying States
Reset when ConditionRemoves when condition for the state.Applying States
Set as DefaultSets the current state as the startup state of the application.Setting the Default State
Reset DefaultResets the current state as the default state.Setting the Default State
Add AnnotationOpens the Annotation Editor when you can add an annotation for the states that you create.Annotating Designs
Edit AnnotationOpens the Annotation Editor where you can edit the annotation for the state.Annotating Designs
Add AnnotationRemoves the annotation for the state.Annotating Designs

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.