1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the Qt Graphs API. It exists purely as an |
8 | // implementation detail. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | |
13 | #ifndef DECLARATIVE_XY_POINT_H |
14 | #define DECLARATIVE_XY_POINT_H |
15 | |
16 | #include <QtQml/qqmlregistration.h> |
17 | #include <QtCore/QObject> |
18 | #include <QtCore/QPointF> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QXYPoint : public QObject, public QPointF |
23 | { |
24 | Q_OBJECT |
25 | Q_PROPERTY(qreal x READ x WRITE setX FINAL) |
26 | Q_PROPERTY(qreal y READ y WRITE setY FINAL) |
27 | QML_NAMED_ELEMENT(XYPoint) |
28 | |
29 | public: |
30 | explicit QXYPoint(QObject *parent = 0); |
31 | }; |
32 | |
33 | QT_END_NAMESPACE |
34 | |
35 | #endif // DECLARATIVE_XY_POINT_H |
36 |
Definitions
Learn Advanced QML with KDAB
Find out more