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
qtgui.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \module QtGui
6 \title Qt GUI C++ Classes
7 \ingroup modules
8 \qtcmakepackage Gui
9 \qtvariable gui
10
11 \brief The Qt GUI module provides the basic enablers for graphical
12 applications written with Qt.
13
14 The \l{Qt GUI} page contains information about how to use the module.
15*/
16
17/*!
18 \module QtGuiPrivate
19 \title Qt GUI Private C++ Classes
20 \qtcmakepackage Gui
21 \qtcmaketargetitem GuiPrivate
22 \qtvariable gui-private
23
24 \brief Provides access to private GUI functionality.
25
26 Use the following CMake commands in your \c {CMakeLists.txt} to access
27 private Qt GUI APIs:
28
29 \badcode
30 find_package(Qt6 REQUIRED COMPONENTS Gui)
31 target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
32 \endcode
33*/
34
35/*!
36 \page qtgui-index.html
37 \title Qt GUI
38
39 The Qt GUI module provides classes for windowing system
40 integration, event handling, OpenGL and OpenGL ES integration, 2D
41 graphics, basic imaging, fonts, and text. These classes are used
42 internally by Qt's user interface technologies but can also be
43 used directly, for example to write applications using low-level
44 OpenGL ES graphics APIs.
45
46 For application developers writing user interfaces, Qt provides
47 higher level APIs, like Qt Quick, that are much more suitable
48 than the enablers found in the Qt GUI module.
49
50 \if !defined(qtforpython)
51
52 \section1 Using the Module
53
54 \include {module-use.qdocinc} {using the c++ api}
55
56 \section2 Building with CMake
57
58 \include {module-use.qdocinc} {building with cmake} {Gui}
59
60 \section2 Building with qmake
61
62 If you use \l qmake to build your projects, Qt GUI is included by
63 default. To disable Qt GUI, add the following line to your \c .pro file:
64
65 \snippet code/doc_src_qtgui.pro 1
66 \endif
67
68 \section1 Articles and Guides
69
70 \list
71 \li \l {Qt GUI Overview}
72 \list
73 \li \l {Application Windows} {Qt GUI Application Windows}
74 \li \l {2D Graphics} {Qt GUI 2D Graphics}
75 \li \l {RHI Graphics} {Qt GUI Accelerated 2D and 3D Graphics using the Qt RHI}
76 \li \l {3D Matrix and Vector Math} {Qt GUI Matrix and Vector Math}
77 \li \l {OpenGL and OpenGL ES Integration}
78 {Qt GUI OpenGL and OpenGL ES Integration}
79 \li \l {Vulkan Integration} {Qt GUI Vulkan Integration}
80 \endlist
81 \endlist
82
83 \section1 Reference
84
85 \list
86 \li \l{Qt GUI C++ Classes}
87 \list
88 \li \l{Event Classes}
89 \li \l{Painting Classes}
90 \li \l{Rendering in 3D}
91 \endlist
92 \endlist
93
94 \section1 Module Evolution
95
96 \l{Changes to Qt GUI} lists important changes in the module API
97 and functionality that were done for the Qt 6 series of Qt.
98
99 \section1 Licenses and Attributions
100
101 Qt GUI is available under commercial licenses from \l{The Qt Company}.
102 In addition, it is available under free software licenses:
103 The \l{GNU Lesser General Public License, version 3}, or
104 the \l{GNU General Public License, version 2}.
105 See \l{Qt Licensing} for further details.
106
107 Furthermore, Qt GUI in Qt \QtVersion may contain third-party
108 modules under following permissive licenses:
109
110 \annotatedlist attributions-qtgui
111 */