Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtquickcontrols-navigation.qdoc
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \page qtquickcontrols-navigation.html
6 \title Navigation Controls
7 \ingroup qtquickcontrols-guidelines
8 \brief Guidelines for navigation controls
9
10 Qt Quick Controls offers a selection of navigation models.
11
12 \annotatedlist qtquickcontrols-navigation
13
14 The following sections offer guidelines for choosing the appropriate type
15 of navigation model, depending on the use case.
16
17 \section1 StackView Control
18
19 \image qtquickcontrols-stackview-wireframe.webp
20 {Stack view wireframe showing page navigation}
21
22 \l StackView provides a stack-based navigation model which can be used
23 with a set of interlinked pages. StackView works according to a last-in
24 first-out principle: the page pushed last on the stack is the one visible.
25 Popping a page removes the last page and makes the previous one visible.
26
27 \section1 SwipeView Control
28
29 \image qtquickcontrols-swipeview-wireframe.webp
30 {Swipe view wireframe showing swipeable pages}
31
32 \l SwipeView provides a navigation model that simplifies horizontal paged
33 scrolling. The page indicator on the bottom shows which is the presently
34 active page.
35
36 \section1 TabBar Control
37
38 \image qtquickcontrols-tabbar-wireframe.webp
39 {Tab bar wireframe showing tab navigation}
40
41 \l TabBar is a bar with icons or text that allows the user to switch
42 between different subtasks, views, or modes.
43
44 \section1 TabButton Control
45
46 \image qtquickcontrols-tabbutton.png
47 {Tab button in tab bar}
48
49 \l TabButton is a button with a layout suitable for a TabBar control.
50*/