Qt Quick Controls 2 offers a selection of container-like controls.
Provides a top-level application window
A container control base type
A logical group of controls within a visual frame
A logical group of controls within a titled visual frame
A control that makes it convenient to add a header and footer to a page
Provides a background matching with the application style and theme
Provides a stack-based navigation model
Enables the user to navigate pages by swiping sideways
A bar with icons allowing to switch between different views or subtasks
A container with context-sensitive controls
Each type of container can be used to group a set of controls together. The following sections offer guidelines for choosing the appropriate type of container, depending on the use case.
ApplicationWindow creates the root window of an application, and makes it easy to add an optional header and footer to that window.
Frame is used to layout a logical group of controls together, within a visual frame.
GroupBox is used to layout a logical group of controls together, within a titled visual frame.
Page provides page-specific header and footer items. It is perfectly possible to use ApplicationWindow for setting the header and the footer, but if you have a header and footer which varies per screen, then it is better to use Page.
Pane provides a background color that matches with the application style and theme. Pane does not provide a layout of its own, but requires you to position its contents, for instance by using a RowLayout or a ColumnLayout.
StackView organizes content pages into a stack using a last-in-first-out principle: the last item to be "pushed" onto the stack is the first one to be removed, and the top-most item is always the one that is visible.
SwipeView organizes content pages into a swipable strip.
TabBar organizes content pages into tabs.
ToolBar is a container of application-wide and context-sensitive actions and controls.
© 2016 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.