Sets a BaseChart
object for display.
QChartViewer stores the BaseChart pointer internally so it can later be retrieved with QChartViewer.getChart
. However, QChartViewer does not use the stored pointer itself. So it is perfectly safe to immediately delete the BaseChart after calling setChart, or to use a BaseChart that is allocated on the stack for this method.
Calling setChart automatically clears any existing image map.
© 2017 Advanced Software Engineering Limited. All rights reserved.