Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlplatform.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#include "qqmlplatform_p.h"
5#include "qqmlglobal_p.h"
6
8
9/*
10 This object and its properties are documented as part of the Qt object,
11 in qqmlengine.cpp
12*/
13
15 : QObject(parent)
16{
17}
18
22
24{
25#if defined(Q_OS_ANDROID)
26 return QStringLiteral("android");
27#elif defined(Q_OS_IOS)
28 return QStringLiteral("ios");
29#elif defined(Q_OS_TVOS)
30 return QStringLiteral("tvos");
31#elif defined(Q_OS_MAC)
32 return QStringLiteral("osx");
33#elif defined(Q_OS_WIN)
34 return QStringLiteral("windows");
35#elif defined(Q_OS_LINUX)
36 return QStringLiteral("linux");
37#elif defined(Q_OS_QNX)
38 return QStringLiteral("qnx");
39#elif defined(Q_OS_WASM)
40 return QStringLiteral("wasm");
41#elif defined(Q_OS_UNIX)
42 return QStringLiteral("unix");
43#else
44 return QStringLiteral("unknown");
45#endif
46}
47
52
54
55#include "moc_qqmlplatform_p.cpp"
\inmodule QtCore
Definition qobject.h:103
virtual QString pluginName() const
QString pluginName
virtual ~QQmlPlatform()
QQmlPlatform(QObject *parent=nullptr)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
Q_AUTOTEST_EXPORT QQmlGuiProvider * QQml_guiProvider(void)
#define QStringLiteral(str)