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#include <QtQuickVectorImageHelpers/qtquickvectorimagehelpersexports.h>
22
24
26{
27 Q_OBJECT
28 Q_PROPERTY(qreal factor READ factor WRITE setFactor NOTIFY factorChanged)
29 Q_PROPERTY(QStringList svgPaths READ svgPaths WRITE setSvgPaths NOTIFY svgPathsChanged)
30
31 QML_NAMED_ELEMENT(PathInterpolated)
32 QML_ADDED_IN_VERSION(6, 11)
33public:
34 explicit QQuickPathInterpolated(QObject *parent = nullptr);
35 qreal factor() const;
36 void setFactor(qreal newFactor);
37 QStringList svgPaths() const;
38 void setSvgPaths(const QStringList &newSvgPaths);
39
40 void addToPath(QPainterPath &path, const QQuickPathData &) override;
41
42Q_SIGNALS:
43 void factorChanged();
44 void svgPathsChanged();
45
46private:
47 QStringList m_svgPaths;
48 QList<QPainterPath> m_paths;
49 qreal m_factor = 0;
50 bool m_dirty = false;
51};
52
53QT_END_NAMESPACE
54
55#endif // QQUICKPATHINTERPOLATED_P_H
Combined button and popup list for selecting options.