1 | // Copyright (C) 2024 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QQUICK3DXRRUNTIMEINFO_P_H |
5 | #define QQUICK3DXRRUNTIMEINFO_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 <QtQuick3DXr/qtquick3dxrglobal.h> |
19 | #include <QtCore/qobject.h> |
20 | #include <QtQml/qqml.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QQuick3DXrManager; |
25 | |
26 | class Q_QUICK3DXR_EXPORT QQuick3DXrRuntimeInfo : public QObject |
27 | { |
28 | Q_OBJECT |
29 | Q_PROPERTY(QStringList enabledExtensions READ enabledExtensions CONSTANT) |
30 | Q_PROPERTY(QString runtimeName READ runtimeName CONSTANT) |
31 | Q_PROPERTY(QString runtimeVersion READ runtimeVersion CONSTANT) |
32 | Q_PROPERTY(QString graphicsApiName READ graphicsApiName CONSTANT) |
33 | |
34 | QML_NAMED_ELEMENT(XrRuntimeInfo) |
35 | QML_UNCREATABLE("Created by XrView") |
36 | QML_ADDED_IN_VERSION(6, 8) |
37 | |
38 | public: |
39 | QQuick3DXrRuntimeInfo(QQuick3DXrManager *manager, QObject *parent = nullptr); |
40 | QStringList enabledExtensions() const; |
41 | QString runtimeName() const; |
42 | QString runtimeVersion() const; |
43 | QString graphicsApiName() const; |
44 | |
45 | private: |
46 | QPointer<QQuick3DXrManager> m_xrmanager; |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif // QQUICK3DXRRUNTIMEINFO_P_H |
52 |
Definitions
Learn Advanced QML with KDAB
Find out more