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