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
qquick3ditem2d_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSGITEM2D_H
5#define QSSGITEM2D_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 <QtQuick3D/private/qquick3dnode_p.h>
19#include <QtQuick3D/private/qquick3dscenemanager_p.h>
20#include <QtQuick/private/qquickitemchangelistener_p.h>
21#include <QtQuick/QSGNode>
22#include <QtCore/QPointer>
23#include <QtCore/QVector>
24
26
27class QSGLayer;
28class QSGRenderer;
29class QSGRootNode;
30class QQuickRootItem;
32{
34public:
35 explicit QQuick3DItem2D(QQuickItem* item, QQuick3DNode *parent = nullptr);
36 ~QQuick3DItem2D() override;
37
38 void addChildItem(QQuickItem *item);
39 void removeChildItem(QQuickItem *item);
40 QQuickItem *contentItem() const;
41 void itemDestroyed(QQuickItem *item) override;
42
43private Q_SLOTS:
44 void invalidated();
45 void updatePicking();
46 void derefWindow(QObject *win);
47
50
51protected:
52 void preSync() override;
53
54private:
56 void markAllDirty() override;
57
58 QVector<QQuickItem *> m_sourceItems;
59 QSGRenderer *m_renderer = nullptr;
60 QSGRootNode *m_rootNode = nullptr;
61 QQuickWindow *m_window = nullptr;
62 QQuickItem *m_contentItem = nullptr;
63 bool m_pickingDirty = true;
64 QPointer<QQuick3DSceneManager> m_sceneManagerForLayer;
65};
66
68
69#endif // QSSGITEM2D_H
\inmodule QtCore
Definition qobject.h:103
void allChildrenRemoved()
void markAllDirty() override
QSSGRenderGraphObject * updateSpatialNode(QSSGRenderGraphObject *node) override
virtual void preSync()
virtual void itemDestroyed(QQuickItem *)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
The renderer class is the abstract baseclass used for rendering the QML scene graph.
The QSGRootNode is the toplevel root of any scene graph.
Definition qsgnode.h:259
Combined button and popup list for selecting options.
#define Q_AUTOTEST_EXPORT
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
QWidget * win
Definition settings.cpp:6
QGraphicsItem * item