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
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 {Widget gallery using the "Windows" style}
20 \caption The Windows style ("windows") is provided by QWindowsStyle.
21
22 \image windows-vista-style.png Windows Vista Style
23 {Widget gallery using Windows' "Vista" style)
24 \caption The Windows Vista style ("windowsvista") is provided by
25 QWindowsVistaStyle.
26
27 \image macos-style.png \macos Style
28 {Widget gallery using "macOS" style)
29 \caption The macOS style ("macOS") is provided by QMacStyle.
30
31 \image fusion-style.png Fusion Style
32 {Widget gallery using the "Fusion" style)
33 \caption The Fusion style ("fusion") is provided by QFusionStyle.
34
35 The Styles example displays the following widgets:
36
37 \list
38 \li QCheckBox (1) provides a checkbox with a text label.
39 \li QRadioButton (2) provides a radio button with a text or pixmap
40 label.
41 \li QPushButton (3) provides a command button.
42 \li QTabWidget (4) provides a stack of tabbed widgets.
43 \li QTableWidget (5) provides a classic item-based table view.
44 \li QScrollBar (6) provides a vertical or horizontal scroll bar.
45 \li QProgressBar (7) provides a horizontal progress bar.
46 \li QDateTimeEdit (8) provides a widget for editing dates and times.
47 \li QSlider (9) provides a vertical or horizontal slider.
48 \li QDial (10) provides a rounded range control (like a speedometer
49 or potentiometer).
50 \endlist
51
52 The Calendar Widget example displays some additional widgets, here run on
53 Windows 10 and \macos:
54
55 \image windows-style2.png
56 {Widget gallery running on Windows 10}
57 \caption Calendar Widget example on Windows 10
58
59 \image macos-style2.png
60 {Widget gallery running on macOS}
61 \caption Calendar Widget example on \macos
62
63 \list
64 \li QGroupBox (1) provides a group box frame with a title.
65 \li QCalendarWidget (2) provides a monthly calendar widget
66 that can be used to select dates.
67 \li QLabel (3) provides a text or image display.
68 \li QDateEdit (4) provides a widget for editing dates.
69 \li QComboBox (5) provides a combined button and pop-up list.
70 \endlist
71*/