ChartDirector 7.1 (C++ Edition)

QmlChartViewer.setChart


Usage

void setChart(BaseChart *c);

Description

Sets a BaseChart object for display.

QmlChartViewer stores the BaseChart pointer internally so it can later be retrieved with QmlChartViewer.getChart. However, QmlChartViewer 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.

Arguments

ArgumentDefaultDescription
c(Mandatory)The BaseChart object to be displayed.

Return Value

None