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
qflexiblejoint_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
5#ifndef PHYSICSFLEXIBLEJOINT_H
6#define PHYSICSFLEXIBLEJOINT_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "joints/qjoint_p.h"
20
22
23class Q_QUICK3DPHYSICS_EXPORT QFlexibleJoint: public QPhysicsJoint
24{
26
27 Q_PROPERTY(float stiffness READ stiffness WRITE setStiffness NOTIFY stiffnessChanged
28 FINAL REVISION(6, 13))
29 Q_PROPERTY(float damping READ damping WRITE setDamping NOTIFY dampingChanged
30 FINAL REVISION(6, 13))
31
32 QML_NAMED_ELEMENT(FlexibleJoint)
33 QML_UNCREATABLE("abstract interface")
35public:
36 Q_REVISION(6, 13) float stiffness() const;
37 Q_REVISION(6, 13) void setStiffness(float stiffness);
39 Q_REVISION(6, 13) float damping() const;
40 Q_REVISION(6, 13) void setDamping(float damping);
43 Q_REVISION(6, 13) void stiffnessChanged();
44 Q_REVISION(6, 13) void dampingChanged();
45
46protected:
48 float m_stiffness = 0.0f;
49 float m_damping = 0.0f;
50};
51
52QT_END_NAMESPACE
53
54#endif // PHYSICSFLEXIBLEJOINT_H
Combined button and popup list for selecting options.
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QT_BEGIN_NAMESPACE
#define QT_END_NAMESPACE
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_REVISION(...)
#define signals
#define emit