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
main.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
7
#
include
<
QtCore
/
qstringlist
.
h
>
8
9
#
include
"qwindowsgdiintegration.h"
10
11
QT_BEGIN_NAMESPACE
12
13
using
namespace
Qt::StringLiterals;
14
15
/*!
16
\title Qt platform plugin for Windows
17
18
\brief Class documentation of the Qt platform plugin for Windows.
19
20
\section1 Supported Parameters
21
22
The following parameters can be passed on to the -platform argument
23
of QGuiApplication:
24
25
\list
26
\li \c fontengine=native Indicates that native font engine should be used (default)
27
\li \c fontengine=freetype Indicates that freetype font engine should be used
28
\li \c gl=gdi Indicates that ARB Open GL functionality should not be used
29
\li \c verbose=<number> Chooses the verbosity level of the platform plugin logging (0-9).
30
\endlist
31
32
\internal
33
*/
34
35
/*!
36
\class QWindowsIntegrationPlugin
37
\brief Plugin.
38
\internal
39
*/
40
41
/*!
42
\namespace QtWindows
43
44
\brief Namespace for enumerations, etc.
45
\internal
46
*/
47
48
/*!
49
\enum QtWindows::WindowsEventType
50
51
\brief Enumerations for WM_XX events.
52
53
With flags that should help to structure the code.
54
55
\internal
56
*/
57
58
class
QWindowsIntegrationPlugin
:
public
QPlatformIntegrationPlugin
59
{
60
Q_OBJECT
61
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"windows.json"
)
62
public
:
63
QPlatformIntegration
*
create
(
const
QString
&,
const
QStringList
&,
int
&,
char
**)
override
;
64
};
65
66
QPlatformIntegration *
QWindowsIntegrationPlugin
::create(
const
QString& system,
const
QStringList& paramList,
int
&,
char
**)
67
{
68
if
(system.compare(system,
"windows"_L1
, Qt::CaseInsensitive) == 0)
69
return
new
QWindowsGdiIntegration
(paramList);
70
return
nullptr
;
71
}
72
73
QT_END_NAMESPACE
74
75
#
include
"main.moc"
QWindowsGdiIntegration
Definition
qwindowsgdiintegration.h:14
QWindowsIntegrationPlugin
\title Qt platform plugin for Windows
Definition
main.cpp:59
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
windows
main.cpp
Generated on
for Qt by
1.16.1