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
qquick3dxritem_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DXRITEM_P_H
5#define QQUICK3DXRITEM_P_H
6
7#include <QQuickItem>
8#include <QtQuick3D/private/qquick3dnode_p.h>
9#include <QtQuick3DXr/private/qquick3dxrview_p.h>
10
11#include <QtQuick/private/qquicktranslate_p.h>
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists purely as an
18// implementation detail. This header file may change from version to
19// version without notice, or even be removed.
20//
21// We mean it.
22//
23
24QT_BEGIN_NAMESPACE
25
26class QQuick3DXrItemPrivate;
27class QQuick3DXrView;
28
30{
31 Q_OBJECT
32 Q_DECLARE_PRIVATE(QQuick3DXrItem)
33
42
45public:
46 explicit QQuick3DXrItem(QQuick3DNode *parent = nullptr);
48
49 QQuickItem *contentItem() const;
50 void setContentItem(QQuickItem *newContentItem);
51
52 qreal pixelsPerUnit() const;
53 void setPixelsPerUnit(qreal newPixelsPerUnit);
54
55 bool manualPixelsPerUnit() const;
56 void setManualPixelsPerUnit(bool newManualPixelsPerUnit);
57
58 qreal width() const;
59 void setWidth(qreal newWidth);
60
61 qreal height() const;
62 void setHeight(qreal newHeight);
63
64 QColor color() const;
65 void setColor(const QColor &newColor);
66
67 bool automaticHeight() const;
68 void setAutomaticHeight(bool newAutomaticHeight);
69
70 bool automaticWidth() const;
71 void setAutomaticWidth(bool newAutomaticHeight);
72
74
85};
86
87QT_END_NAMESPACE
88
89#endif // QQUICK3DXRITEM_P_H
QPointer< QQuick3DXrView > m_XrView
QQuickRectangle * m_containerItem
QMetaObject::Connection m_automaticHeightConnection
QMetaObject::Connection m_contentItemDestroyedConnection
QMetaObject::Connection m_automaticWidthConnection
bool manualPixelsPerUnit() const
\qmlproperty bool XrItem::manualPixelsPerUnit
void heightChanged()
void setAutomaticWidth(bool newAutomaticHeight)
void pixelsPerUnitChanged()
void widthChanged()
void setWidth(qreal newWidth)
qreal width() const
\qmlproperty real XrItem::width
void manualPixelsPerUnitChanged()
void automaticHeightChanged()
void automaticWidthChanged()
void setColor(const QColor &newColor)
void setManualPixelsPerUnit(bool newManualPixelsPerUnit)
void setPixelsPerUnit(qreal newPixelsPerUnit)
QColor color() const
\qmlproperty color XrItem::color
qreal height() const
\qmlproperty real XrItem::height
bool automaticHeight() const
\qmlproperty bool XrItem::automaticHeight
bool automaticWidth() const
\qmlproperty bool XrItem::automaticWidth
QQuickItem * contentItem() const
\qmlproperty Item XrItem::contentItem
void setHeight(qreal newHeight)
void flagsChanged()
void colorChanged()
~QQuick3DXrItem() override
qreal pixelsPerUnit() const
\qmlproperty real XrItem::pixelsPerUnit
void setAutomaticHeight(bool newAutomaticHeight)
void setContentItem(QQuickItem *newContentItem)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Combined button and popup list for selecting options.
static qreal calculatePPU(qreal pxWidth, qreal pxHeight, qreal diagonal)