1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include <private/qxypoint_p.h>
5#include <QtCore/QDataStream>
6
7QT_BEGIN_NAMESPACE
8
9/*!
10 \qmltype XYPoint
11 \inqmlmodule QtGraphs
12 \ingroup graphs_qml_2D
13 \brief Initializes XY-series coordinate data.
14
15 The XYPoint type is a convenience type for initializing line, spline, and
16 scatter series with static coordinate data. To manipulate a series
17 dynamically, use the data manipulation functions it inherits from the
18 XYSeries type, instead.
19 \sa XYSeries, LineSeries, ScatterSeries
20*/
21
22/*!
23 \qmlproperty real XYPoint::x
24 The x-coordinate of the point.
25*/
26
27/*!
28 \qmlproperty real XYPoint::y
29 The y-coordinate of the point.
30*/
31
32QXYPoint::QXYPoint(QObject *parent) :
33 QObject(parent)
34{
35 setX(0.0);
36 setY(0.0);
37}
38
39QT_END_NAMESPACE
40

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs2d/xychart/qxypoint.cpp