Momergil
22nd May 2014, 12:44
Hello!
I come to notice that, in putting some items on a plot (some QwtPlotCurve into a QwtPlot, for instance), there doesn't seem to be any visible difference between making an item appear on the screen by calling QwtPlotItem::attach(*) or QwtPlotItem::setVisible(true), or by making it hide by calling QwtPlotItem::detach() or QwtPlotItem::setVisible(false).
So I know that calling setVisible without previous attach is fruitless, but is there actually a difference in calling one instead of the other when I simply want to make an item show or hide in a plot?
Thanks,
Momergil
I come to notice that, in putting some items on a plot (some QwtPlotCurve into a QwtPlot, for instance), there doesn't seem to be any visible difference between making an item appear on the screen by calling QwtPlotItem::attach(*) or QwtPlotItem::setVisible(true), or by making it hide by calling QwtPlotItem::detach() or QwtPlotItem::setVisible(false).
So I know that calling setVisible without previous attach is fruitless, but is there actually a difference in calling one instead of the other when I simply want to make an item show or hide in a plot?
Thanks,
Momergil