Results 1 to 2 of 2

Thread: Help with incremental painting...

  1. #1
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Help with incremental painting...

    Hello all...I am using qwt 6.0.1 on linux and qt 4.7..I am doing real time plotting using incremental painting as shown in oscilloscope example..But in my case i am having many qwtplot widgets for plotting..My layout is in such a way that only 1 plotwidget is visible at a time.I use page up and page down button controls to go to the next plot widget.i.e.,I am adding only 1 plotwidget to the layout and hiding the remaining plot widgets..when i do page down,i will show the next plot widget and hide the remaning widgets..The problem i am facing is i am not able to do painting on the hidden plot widgets..i am calling a function every 1 second to plot on all the plotwidgets..but the widgets which were hidden are not getting painted..only the current visible widget is getting painted..When i use page up/down button and go to the other plot widget,then from that point of time painting is started on the current visible widget..my axis range is fixed and i should be able to see the plot right from the starting time i.e., from lower limit of scale..But i am not able to update the plot during the time it was hidden..how to enable painting on plotwidgets which are hidden?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Help with incremental painting...

    You can't paint something to a hidden widget - you need to have an implementation for the full repaint following the show event.

    If your application doesn't store any samples after drawing them with the direct painter, you don't have a working replot operation. As long as the plot canvas has exactly the same size in hidden and visible state you could try to enable the backing store of the canvas ( QwtPlotCanvas::BackingStore ). Then show/repaint might work - but as soon as you have a resize of the canvas you need a working replot.

    Uwe

Similar Threads

  1. Replies: 2
    Last Post: 1st March 2013, 00:22
  2. incremental plotting
    By shiv.072007 in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2012, 11:40
  3. QFileSystemModel - Incremental update/pre-emptive update
    By johnnyturbo3 in forum Qt Programming
    Replies: 0
    Last Post: 2nd September 2011, 14:56
  4. Incremental Spectrogram...
    By uppu in forum Qwt
    Replies: 11
    Last Post: 13th April 2011, 14:47
  5. incremental 2d plotter with QGraphicsView
    By bingofuel in forum Qt Programming
    Replies: 1
    Last Post: 25th August 2009, 07:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.