I have been using QCustomPlot for a while to show graphs in the UI, but now I need to create some reports with graphs in C++, and am not sure if QCustomPlot is able to create graphs WITHOUT showing them to the user. Can QCustomPlot do offscreen rendering?
I have read "http://qcustomplot.com/index.php/tutorials/specialcases/textdocument", but it says "let's assume our QCustomPlot is ui->plot", and I think that assumption wouldn't hold for me. It means I'd have to show the plot in some UI before I can insert it into QTextDocument and then export it to PDF, correct?
Looking for other options, I've tried QtCharts yesterday, and that only seems to work well when showing the graph for a short time while saving to file, so the user would see many windows flicker when the report is generated.
Vtk seems to have an offscreen rendering solution, but from 20 minutes of googling, it seems its based on mesa/llvmpipe and probably is a support nightmare.
gnuplot-iostreams is a bit dodgy at least on windows.
ChartDirector costs a bit of money, but may work.
Thanks for your help!