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-menus.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-menus.html
6 \title Menu Controls
7 \ingroup qtquickcontrols-guidelines
8 \brief Guidelines for menu controls
9
10 \annotatedlist qtquickcontrols-menus
11
12 Each type of menu control has its own specific target use case. The
13 following sections offer guidelines for choosing the appropriate type
14 of menu control, depending on the use case.
15
16 \section1 Menu Control
17
18 \image qtquickcontrols-menu.png
19 {Menu displaying items with shortcuts}
20
21 \l Menu control can be used for context menus; for example, after
22 right-clicking. It can also be used for popup menus; for example, a
23 menu that is shown after clicking a button.
24
25 \l MenuItem is an item in the Menu control. Each item in a menu:
26 \list
27 \li displays text to the user
28 \li allows checking/unchecking
29 \li is highlighted (for example, on keyboard navigation)
30 \li performs some action on activation
31 \endlist
32
33 \section1 MenuBar Control
34
35 \image qtquickcontrols-menubar.png
36 {Menu bar with File, Edit, and View menus}
37
38 \l MenuBar control can be used for window menu bars.
39
40 \l MenuBarItem is an item in the MenuBar control. Each item in a menu bar:
41 \list
42 \li displays text to the user
43 \li is highlighted (for example, on keyboard navigation)
44 \li pops up the respective menu on activation
45 \endlist
46*/