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-popups.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-popups.html
6
\title Popup Controls
7
\ingroup qtquickcontrols-guidelines
8
\brief Guidelines for popup controls
9
10
\annotatedlist qtquickcontrols-popups
11
12
Each type of popup control has its own specific target use case. The
13
following sections offer guidelines for choosing the appropriate type
14
of popup control, depending on the use case.
15
16
\section1 Drawer Control
17
18
\image qtquickcontrols-drawer-expanded-wireframe.webp
19
{Drawer expanded from screen edge}
20
21
\l Drawer provides a swipe-based side panel, similar to those often used
22
in touch interfaces to provide a central location for navigation.
23
24
The drawer can be positioned at any of the four edges of the screen. It allows
25
the user to add navigation without taking up valuable screen space. The user can
26
show and hide the drawer at any time with a simple swipe movement.
27
28
\section1 Menu Control
29
30
\image qtquickcontrols-menu.png
31
{Menu displaying items with shortcuts}
32
33
The \l Menu control displays a vertical list of items that can be selected. It can
34
be used for offering a list of actions that can be taken in a given context.
35
36
\b {See also} \l {Drawer Control}.
37
38
\section1 Popup Control
39
40
\image qtquickcontrols-popup-settings.png
41
{Popup displaying settings with controls}
42
43
A \l Popup displays content over other application content.
44
It prompts the user to make a decision or enter information.
45
46
Popups can be modal or non-modal. A modal popup blocks users from interacting
47
with the application until they have made a choice and closed the popup.
48
49
A popup can be used for:
50
51
\list
52
\li communicating a message to the user that they must read and acknowledge.
53
\li displaying an error message.
54
\li prompting the user to make a choice and/or enter a value.
55
\endlist
56
57
\section1 ToolTip Control
58
59
\image qtquickcontrols-tooltip.png
60
{Tooltip displaying helpful text}
61
62
\l ToolTip shows a short piece of text that informs the user of a control's
63
function. It is typically placed above or below the parent control.
64
65
Recommendations:
66
\list
67
\li Use a tooltip if a control has little or no descriptive text, or needs
68
a short explanation.
69
\li Use a tooltip only if the information on a particular control is not
70
available elsewhere in the screen.
71
\li Keep the tooltip text short so that it does not cover other content
72
while being displayed.
73
\endlist
74
75
\section1 Related Information
76
\list
77
\li \l {Qt Quick Controls Guidelines}
78
\endlist
79
*/
qtdeclarative
src
quickcontrols
doc
src
qtquickcontrols-popups.qdoc
Generated on
for Qt by
1.16.1