以下成员源于类 QChart 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(弃用)
QAbstractAxis *
|
axisX (QAbstractSeries * series = nullptr) const |
(弃用)
QAbstractAxis *
|
axisY (QAbstractSeries * series = nullptr) const |
(弃用)
void
|
setAxisX (QAbstractAxis * axis , QAbstractSeries * series = nullptr) |
(弃用)
void
|
setAxisY (QAbstractAxis * axis , QAbstractSeries * series = nullptr) |
This function is deprecated. We strongly advise against using it in new code.
使用 axes () 代替。
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.
另请参阅 setAxisX (), addAxis (),和 QAbstractSeries::attachAxis ().
This function is deprecated. We strongly advise against using it in new code.
使用 axes () 代替。
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.
另请参阅 setAxisY (), addAxis (),和 QAbstractSeries::attachAxis ().
This function is deprecated. We strongly advise against using it in new code.
使用 addAxis () 代替。
添加轴 axis 到图表并将它附加到系列 series 作为底部对齐的水平轴。图表拥有轴和系列两者的所有权。先前附加到系列的任何水平轴将被删除。
另请参阅 axisX (), axisY (), setAxisY (), createDefaultAxes (),和 QAbstractSeries::attachAxis ().
This function is deprecated. We strongly advise against using it in new code.
使用 addAxis () 代替。
添加轴 axis 到图表并将它附加到系列 series 作为左对齐的垂直轴。图表拥有轴和系列两者的所有权。先前附加到系列的任何垂直轴将被删除。
另请参阅 axisX (), axisY (), setAxisX (), createDefaultAxes (),和 QAbstractSeries::attachAxis ().