Obsolete Members for QChart

QChart クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが引き続き動作するように提供されているものです。新しいコードでの使用は強く推奨しません。

パブリック関数

(deprecated) QAbstractAxis *axisX(QAbstractSeries *series = nullptr) const
(deprecated) QAbstractAxis *axisY(QAbstractSeries *series = nullptr) const
(deprecated) void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = nullptr)
(deprecated) void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = nullptr)

メンバー関数のドキュメント

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

この関数は非推奨です。新しいコードでの使用は強くお勧めしません。

代わりに `axes()` を使用してください。

指定されたseries に紐付けられた横軸へのポインタを返します。シリーズが指定されていない場合は、チャートに最初に追加された横軸が返されます。

setAxisX()、addAxis()、およびQAbstractSeries::attachAxis()も参照してください 。

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

この関数は非推奨です。新しいコードでの使用は強くお勧めしません。

代わりに `axes()` を使用してください。

指定されたseries に紐付けられた縦軸へのポインタを返します。シリーズが指定されていない場合は、チャートに最初に追加された縦軸が返されます。

setAxisY()、addAxis()、およびQAbstractSeries::attachAxis()も参照してください 。

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

この関数は非推奨となっています。新しいコードでの使用は強くお勧めしません。

代わりに `addAxis()` を使用してください。

axis 軸をチャートに追加し、series シリーズに下端揃えの水平軸として関連付けます。チャートは軸とシリーズの両方の所有権を取得します。以前にこのシリーズに関連付けられていた水平軸はすべて削除されます。

axisX()、axisY()、setAxisY()、createDefaultAxes()、およびQAbstractSeries::attachAxis()も参照してください 。

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

この関数は非推奨です。新しいコードでの使用は強くお勧めしません。

代わりに `addAxis()` を使用してください。

axis 軸をチャートに追加し、series シリーズに左揃えの縦軸として関連付けます。チャートは軸とシリーズの両方の所有権を取得します。以前にこのシリーズに関連付けられていた縦軸はすべて削除されます。

axisX()、axisY()、setAxisX()、createDefaultAxes()、およびQAbstractSeries::attachAxis()も参照してください 。

© 2026 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.