Currently, I am writing a code that plots some 2D-Data (splines) using QChartView and QChart. I want to add some graphics objects like rectangles or even images to the graphs. Is this possible? There seem to be no methods like draw rectangle within QChart. My code looks something like this:
QChartView *mainChart;
QChart *chart;
chart=new QChart();
series_x = new QSplineSeries; {...} chart->addSeries(series_x);
mainChart->setChart(plot); setCentralWidget(mainChart)
Best regards.