[Qt-interest] Drawing huge amounts of data into a waterfall

Sean Harmer sean.harmer at maps-technology.com
Thu Dec 17 16:20:49 CET 2009


Hi,

On Thursday 17 December 2009 15:16:35 Valentina Masi wrote:
> Hi all
> 
> I am developing an application drawing a huge amount of data: every 250ms
>  my application receives a new array of 2731 floats and has to update a
>  waterfall chart moving down the chart content of 1 pixel and showing a new
>  line (of 2731 points) at the top of the chart. In order to do this, I have
>  created a custom widget extending QWidget and overridden paintEvent
>  handler. My problem is that running my application is too selfish in term
>  of CPU and gets very slow just after a few seconds.
> 
> Can anyone give me a suggest?

Are you able to post some sample code that shows what you are doing? Or even 
better a complete working example that uses random data for e.g.?

Sean



More information about the Qt-interest-old mailing list