Qt Quick 3D - Robot Arm Example | Qt Quick 3D 6.4.2

- Qt 6.4
- Qt Quick 3D
- Qt Quick 3D Examples and Tutorials
- Qt Quick 3D - Robot Arm Example
- Qt Quick 3D | Commercial or GPLv3

# Qt Quick 3D - Robot Arm Example

     // Copyright (C) 2022 The Qt Company Ltd.
     // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

     #ifndef ANIMATEDPARAM_H
     #define ANIMATEDPARAM_H

     #include <QProperty>
     #include <QVariantAnimation>

     class AnimatedParam : public QVariantAnimation
     {
         Q_OBJECT
         Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)

     public:
         AnimatedParam(QObject *parent = nullptr);

         int value() const;
         void setValue(int newValue);

         bool isRunning() const;

     signals:
         void valueChanged();

     private:
         QProperty<bool> m_isRunning;
     };

     #endif // ANIMATEDPARAM_H