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_p.h
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#ifndef QQMLPLATFORM_P_H
5#define QQMLPLATFORM_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/QObject>
19#include <qqml.h>
20#include <private/qtqmlglobal_p.h>
21
23
24class Q_QML_EXPORT QQmlPlatform : public QObject
25{
27 Q_PROPERTY(QString os READ os CONSTANT)
28 Q_PROPERTY(QString pluginName READ pluginName CONSTANT)
31
32public:
33 explicit QQmlPlatform(QObject *parent = nullptr);
34 virtual ~QQmlPlatform();
35
36 static QString os();
37 QString pluginName() const;
38
40 Q_DISABLE_COPY(QQmlPlatform)
41};
42
44
45#endif // QQMLPLATFORM_P_H
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define QML_ANONYMOUS
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define explicit