Hello,
is something like:
//inside QCPAbstractItem subclass destructor this->parentPlot()->removeItem(this);
safe?
Hello,
is something like:
//inside QCPAbstractItem subclass destructor this->parentPlot()->removeItem(this);
no. any item added to QCustomPlot is controlled by the plot. calling removeItem will delete the data again. depending on your compiler, you may crash or get stuck in an infinite loop.