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
qquick3dparticleabstractshape.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5#include <QtQuick3D/private/qquick3dnode_p.h>
6
8
24
26{
27 if (!parentNode())
28 qWarning() << "Shape requires parent Node to function correctly!";
29}
30
32{
33 QQuick3DNode *node = qobject_cast<QQuick3DNode *>(parent());
34 if (!m_parentNode || m_parentNode != node)
35 m_parentNode = node;
36 return m_parentNode;
37}
38
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QQuick3DParticleAbstractShape(QObject *parent=nullptr)
\qmltype ParticleAbstractShape3D \inherits QtObject \inqmlmodule QtQuick3D.Particles3D
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:166