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
qquickpathinterpolated_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKPATHINTERPOLATED_P_H
5#define QQUICKPATHINTERPOLATED_P_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 <QStringList>
19#include <QPainterPath>
20#include <private/qquickpath_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQuickPathInterpolated : public QQuickCurve
25{
26 Q_OBJECT
27 Q_PROPERTY(qreal factor READ factor WRITE setFactor NOTIFY factorChanged)
28 Q_PROPERTY(QStringList svgPaths READ svgPaths WRITE setSvgPaths NOTIFY svgPathsChanged)
29
30 QML_NAMED_ELEMENT(PathInterpolated)
31 QML_ADDED_IN_VERSION(6, 11)
32public:
33 explicit QQuickPathInterpolated(QObject *parent = nullptr);
34 qreal factor() const;
35 void setFactor(qreal newFactor);
36 QStringList svgPaths() const;
37 void setSvgPaths(const QStringList &newSvgPaths);
38
39 void addToPath(QPainterPath &path, const QQuickPathData &) override;
40
41Q_SIGNALS:
42 void factorChanged();
43 void svgPathsChanged();
44
45private:
46 QStringList m_svgPaths;
47 QList<QPainterPath> m_paths;
48 qreal m_factor = 0;
49 bool m_dirty = false;
50};
51
53
54#endif // QQUICKPATHINTERPOLATED_P_H
Combined button and popup list for selecting options.