1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
6 \title Qt Widget Gallery
7 \brief Qt widgets shown in different styles on various platforms.
9 Qt's support for widget styles and themes enables your application to fit in
10 with the native desktop environment.
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.
20 \li The Windows style ("windows") is provided by QWindowsStyle.
21 \li \image windows-style.png Windows Style
23 \li \image windows-vista-style.png Windows Vista Style
24 \li The Windows Vista style ("windowsvista") is provided by
27 \li The macOS style ("macOS") is provided by QMacStyle.
28 \li \image macos-style.png \macos Style
30 \li \image fusion-style.png Fusion Style
31 \li The Fusion style ("fusion") is provided by QFusionStyle.
34 The Styles example displays the following widgets:
37 \li QCheckBox (1) provides a checkbox with a text label.
38 \li QRadioButton (2) provides a radio button with a text or pixmap
40 \li QPushButton (3) provides a command button.
41 \li QTabWidget (4) provides a stack of tabbed widgets.
42 \li QTableWidget (5) provides a classic item-based table view.
43 \li QScrollBar (6) provides a vertical or horizontal scroll bar.
44 \li QProgressBar (7) provides a horizontal progress bar.
45 \li QDateTimeEdit (8) provides a widget for editing dates and times.
46 \li QSlider (9) provides a vertical or horizontal slider.
47 \li QDial (10) provides a rounded range control (like a speedometer
51 The Calendar Widget example displays some additional widgets, here run on
52 Windows 10 and \macos:
54 \image windows-style2.png
55 \caption Calendar Widget example on Windows 10
57 \image macos-style2.png
58 \caption Calendar Widget example on \macos
61 \li QGroupBox (1) provides a group box frame with a title.
62 \li QCalendarWidget (2) provides a monthly calendar widget
63 that can be used to select dates.
64 \li QLabel (3) provides a text or image display.
65 \li QDateEdit (4) provides a widget for editing dates.
66 \li QComboBox (5) provides a combined button and pop-up list.