Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatformintegrationfactory.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
#
include
<
qpa
/
qplatformintegrationfactory_p
.
h
>
6
#
include
<
qpa
/
qplatformintegrationplugin
.
h
>
7
#
include
"private/qfactoryloader_p.h"
8
#
include
"qmutex.h"
9
#
include
"qdir.h"
10
11
#
include
"qguiapplication.h"
12
#
include
"qdebug.h"
13
14
QT_BEGIN_NAMESPACE
15
16
using
namespace
Qt::StringLiterals;
17
18
Q_GLOBAL_STATIC_WITH_ARGS
(QFactoryLoader, piLoader,
19
(QPlatformIntegrationFactoryInterface_iid,
"/platforms"_L1
, Qt::CaseInsensitive))
20
21
QPlatformIntegration *QPlatformIntegrationFactory::create(
const
QString &platform,
const
QStringList ¶mList,
int
&argc,
char
**argv,
const
QString &platformPluginPath)
22
{
23
piLoader->setExtraSearchPath(platformPluginPath);
24
return
qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(piLoader(), platform, paramList, argc, argv);
25
}
26
27
/*!
28
\internal
29
Returns the list of valid keys, i.e. the keys this factory can
30
create styles for.
31
32
\sa create()
33
*/
34
35
QStringList QPlatformIntegrationFactory::keys(
const
QString &platformPluginPath)
36
{
37
piLoader->setExtraSearchPath(platformPluginPath);
38
return
piLoader->keyMap().values();
39
}
40
41
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_GLOBAL_STATIC_WITH_ARGS
Q_GLOBAL_STATIC_WITH_ARGS(PermissionStatusHash, g_permissionStatusHash,({ { qMetaTypeId< QCameraPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QMicrophonePermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QBluetoothPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QContactsPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QCalendarPermission >(), Qt::PermissionStatus::Undetermined }, { qMetaTypeId< QLocationPermission >(), Qt::PermissionStatus::Undetermined } }))
qtbase
src
gui
kernel
qplatformintegrationfactory.cpp
Generated on
for Qt by
1.18.0