PDA

View Full Version : Ownership or deleting of plot items



mqt
13th May 2015, 11:39
I have class inherited from QwtPlot. I have few member variables which are pointers to QwtPlotMarker, QwtSymbol and QwtPlotCurve. In my constructor, I am allocating memory for them using new operator. Do I need to delete them in my destructor? Or QwtPlot's destructor will delete them ?

Uwe
14th May 2015, 09:10
http://qwt.sourceforge.net/class_qwt_plot_dict.html

Uwe

mqt
14th May 2015, 13:30
Ok, So there are ways to control ownership. Let me try ..Thanks