1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5 \page qtquickcontrols-containers.html
6 \title Container Controls
7 \ingroup qtquickcontrols-guidelines
8 \brief Guidelines for container controls
10 Qt Quick Controls offers a selection of container-like controls.
12 \annotatedlist qtquickcontrols-containers
14 Each type of container can be used to group a set of controls together.
15 The following sections offer guidelines for choosing the appropriate type
16 of container, depending on the use case.
18 \section1 ApplicationWindow Control
20 \image qtquickcontrols-applicationwindow-wireframe.png
22 \l ApplicationWindow creates the root window of an application, and makes
23 it easy to add an optional header and footer to that window.
25 \section1 Frame Control
27 \image qtquickcontrols-frame.png
29 \l Frame is used to layout a logical group of controls together, within
32 \section1 GroupBox Control
34 \image qtquickcontrols-groupbox.png
36 \l GroupBox is used to layout a logical group of controls together,
37 within a titled visual frame.
39 \section1 Page Control
41 \image qtquickcontrols-page-wireframe.png
43 \l Page provides page-specific header and footer items.
44 It is perfectly possible to use ApplicationWindow for setting the header
45 and the footer, but if you have a header and footer which varies per
46 screen, then it is better to use \l Page.
48 \section1 Pane Control
50 \image qtquickcontrols-pane.png
52 \l Pane provides a background color that matches with the application
53 style and theme. Pane does not provide a layout of its own, but requires
54 you to position its contents, for instance by using a \l RowLayout or
57 \section1 ScrollView Control
59 \image qtquickcontrols-scrollview-wireframe.png
61 \l ScrollView provides scrolling for user-defined content.
63 \section1 StackView Control
65 \image qtquickcontrols-stackview-wireframe.png
67 \l StackView organizes content pages into a stack using a last-in-first-out
68 principle: the last item to be "pushed" onto the stack is the first one to
69 be removed, and the top-most item is always the one that is visible.
71 \section1 SwipeView Control
73 \image qtquickcontrols-swipeview-wireframe.png
75 \l SwipeView organizes content pages into a swipable strip.
77 \section1 TabBar Control
79 \image qtquickcontrols-tabbar-wireframe.png
81 \l TabBar organizes content pages into tabs.
83 \section1 ToolBar Control
85 \image qtquickcontrols-toolbar.png
87 \l ToolBar is a container of application-wide and context-sensitive