PDA

View Full Version : reset QwtPlot



sarefo
23rd January 2008, 14:23
i have a QwtPlot inside a widget that displays data for me. when i switch to a different dataset that has no calculated data yet, i want the plot to display nothing, exactly the way it looks before i draw anything inside it. i could not find a .reset() or similar function, so before i start to reset any single parameter, i thought maybe there's a more elegant way to do this :)

cheers

s.

Uwe
24th January 2008, 09:00
Use plot->clear() or better plot->detachItems(...);

HTH,
Uwe