Obsolete Members for QChart

The following members of class QChart are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) acceptsHoverEvents() const
(obsolete) QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const
(obsolete) QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const
(obsolete) children() const
(obsolete) dumpObjectInfo()
(obsolete) dumpObjectTree()
(obsolete) handlesChildEvents() const
(obsolete) matrix() const
(obsolete) resetMatrix()
(obsolete) rotate(qreal angle)
(obsolete) scale(qreal sx, qreal sy)
(obsolete) sceneMatrix() const
(obsolete) setAcceptsHoverEvents(bool enabled)
(obsolete) void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = nullptr)
(obsolete) void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = nullptr)
(obsolete) setHandlesChildEvents(bool enabled)
(obsolete) setMatrix(const QMatrix &matrix, bool combine)
(obsolete) shear(qreal sh, qreal sv)
(obsolete) translate(qreal dx, qreal dy)

Member Function Documentation

QAbstractAxis *QChart::axisX(QAbstractSeries *series = nullptr) const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use axes() instead.

Returns a pointer to the horizontal axis attached to the specified series. If no series is specified, the first horizontal axis added to the chart is returned.

See also setAxisX(), addAxis(), and QAbstractSeries::attachAxis().

QAbstractAxis *QChart::axisY(QAbstractSeries *series = nullptr) const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use axes() instead.

Returns a pointer to the vertical axis attached to the specified series. If no series is specified, the first vertical axis added to the chart is returned.

See also setAxisY(), addAxis(), and QAbstractSeries::attachAxis().

void QChart::setAxisX(QAbstractAxis *axis, QAbstractSeries *series = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use addAxis() instead.

Adds the axis axis to the chart and attaches it to the series series as a bottom-aligned horizontal axis. The chart takes ownership of both the axis and the series. Any horizontal axes previously attached to the series are deleted.

See also axisX(), axisY(), setAxisY(), createDefaultAxes(), and QAbstractSeries::attachAxis().

void QChart::setAxisY(QAbstractAxis *axis, QAbstractSeries *series = nullptr)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use addAxis() instead.

Adds the axis axis to the chart and attaches it to the series series as a left-aligned vertical axis. The chart takes ownership of both the axis and the series. Any vertical axes previously attached to the series are deleted.

See also axisX(), axisY(), setAxisX(), createDefaultAxes(), and QAbstractSeries::attachAxis().

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.