https://doc.qt.io/qt-5/qchart.html#addSeriesvoid QChart::addSeries(QAbstractSeries *series)
Adds the series series to the chart and takes ownership of it.
Note: A newly added series is not attached to any axes by default, not even those that might have been created for the chart using createDefaultAxes() before the series was added to the chart. If no axes are attached to the newly added series before the chart is shown, the series will get drawn as if it had axes with ranges that exactly fit the series to the plot area of the chart. This can be confusing if the same chart also displays other series that have properly attached axes, so always make sure you either call createDefaultAxes() after a series has been added or explicitly attach axes for the series.
【 在 tkfeng2000 的大作中提到: 】
: 当一个QLineSeries的实例对应多个QChart时,程序执行不下去直接闪退了
: 改成一个对一个后,能执行下去了
: 不知道是我设置不对还是QT本身就是这么设计的
: ...................
--
FROM 85.165.239.*