PDA

View Full Version : Automatic delete of attached items



Momergil
18th June 2014, 19:41
Hello!

I'ld like to know if an item that is attached to a QwtPlot will be deleted when the QwtPlot is deleted if it's still attached to it (I couldn't read any clear instruction about this in the manuals).


Thanks,

Momergil

Cah
18th June 2014, 23:03
I'ld like to know if an item that is attached to a QwtPlot will be deleted when the QwtPlot is deleted if it's still attached to it

When deleting a plot...
If autoDelete is on (the default is on) all attached items are detached and deleted. If autoDelete is off, all attached items are detached but not deleted. Have a look at QwtPlotDict::setAutoDelete ( ) and QwtPlotDict::detachItems ( )