PDA

View Full Version : Efficiently plotting 2d data in a QGraphicsscene



xenome
5th September 2009, 15:58
Hi,

I am currently plotting 2d data in a graphicsscene (using shapes) and I need to keep the right axis always visible but obviously scaled. I'm implementing a scroll bar to slide the 2d data, but this means I'm redrawing the 2d data all the time. Is there a more efficient way to do this? Should I make the 2d data one scene and the right axis another? Perhaps that way I can use the view slider for the 2d data and the right axis remains static.

I feel like redrawing the shapes on a graphicsview slide/resize is not the most efficient means of doing this. Obviously I could just plot all the shapes but then as you slide the view the right axis will disappear.

Btw, I am aware of Qwt. I imagine someone will immediately tell me to just use that ;)

Thanks