Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
20 \l Menu control can be used for context menus; for example, after
21 right-clicking. It can also be used for popup menus; for example, a
22 menu that is shown after clicking a button.
23
24 \l MenuItem is an item in the Menu control. Each item in a menu:
25 \list
26 \li displays text to the user
27 \li allows checking/unchecking
28 \li is highlighted (for example, on keyboard navigation)
29 \li performs some action on activation
30 \endlist
31
32 \section1 MenuBar Control
33
34 \image qtquickcontrols-menubar.png
35
36 \l MenuBar control can be used for window menu bars.
37
38 \l MenuBarItem is an item in the MenuBar control. Each item in a menu bar:
39 \list
40 \li displays text to the user
41 \li is highlighted (for example, on keyboard navigation)
42 \li pops up the respective menu on activation
43 \endlist
44*/