QCustomPlot Discussion and Comments

Use a pointer to an array instead of qvectorReturn to overview

I have a pointer to a memory area that contains 1 gigabyte double values. In order to show them on the graph I need to convert them to QVector:

void setData(const QVector<double> &keys, const QVector<double> &values, bool alreadySorted=false)

This is a problem because there is now an extra gigabyte of data in memory. Can I use a pointer in any way, do not create a copy for QVector to show it on the chart?
Thanks for any suggestions.

from the documentation: https://www.qcustomplot.com/documentation/classQCPGraph.html#a1eae9429a316b008e2d99b2d65a54395

you would want to hold your own version of the QCPGraphDataContainer and update it