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
gallery.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \page gallery.html
6 \title Qt Widget Gallery
7 \brief Qt widgets shown in different styles on various platforms.
8
9 Qt's support for widget styles and themes enables your application to fit in
10 with the native desktop environment.
11
12 The widgets examples show how some of the widgets available in Qt might
13 appear when configured to use the a particular style. Each style is only
14 available on the respective platform, and provides native look and feel by
15 integrating to the platform theme. Thus, the final appearance varies
16 depending on the active theme.
17
18 \image windows-style.png Windows Style
19 \caption The Windows style ("windows") is provided by QWindowsStyle.
20
21 \image windows-vista-style.png Windows Vista Style
22 \caption The Windows Vista style ("windowsvista") is provided by
23 QWindowsVistaStyle.
24
25 \image macos-style.png \macos Style
26 \caption The macOS style ("macOS") is provided by QMacStyle.
27
28 \image fusion-style.png Fusion Style
29 \caption The Fusion style ("fusion") is provided by QFusionStyle.
30
31 The Styles example displays the following widgets:
32
33 \list
34 \li QCheckBox (1) provides a checkbox with a text label.
35 \li QRadioButton (2) provides a radio button with a text or pixmap
36 label.
37 \li QPushButton (3) provides a command button.
38 \li QTabWidget (4) provides a stack of tabbed widgets.
39 \li QTableWidget (5) provides a classic item-based table view.
40 \li QScrollBar (6) provides a vertical or horizontal scroll bar.
41 \li QProgressBar (7) provides a horizontal progress bar.
42 \li QDateTimeEdit (8) provides a widget for editing dates and times.
43 \li QSlider (9) provides a vertical or horizontal slider.
44 \li QDial (10) provides a rounded range control (like a speedometer
45 or potentiometer).
46 \endlist
47
48 The Calendar Widget example displays some additional widgets, here run on
49 Windows 10 and \macos:
50
51 \image windows-style2.png
52 \caption Calendar Widget example on Windows 10
53
54 \image macos-style2.png
55 \caption Calendar Widget example on \macos
56
57 \list
58 \li QGroupBox (1) provides a group box frame with a title.
59 \li QCalendarWidget (2) provides a monthly calendar widget
60 that can be used to select dates.
61 \li QLabel (3) provides a text or image display.
62 \li QDateEdit (4) provides a widget for editing dates.
63 \li QComboBox (5) provides a combined button and pop-up list.
64 \endlist
65*/