Results 1 to 4 of 4

Thread: Qwt minimize drawing part

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Qwt minimize drawing part

    Hi all,
    I am concerning about optimization when redrawing of qwt plot.
    A Qwtplot has a QwtPlotItem attached. When there is new data, calling plot.replot() will redraw everything including QwtScale. Is there anyway to call QwtPlotItem to update only when there is new data to avoid the rest to update (because my QwtScale is static all the time). Caching pixmap is one solution but it is a redraw anyway.
    This can be apply to barchart, xy plot, qwtDial, etc.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: Qwt minimize drawing part

    Time it takes to blit cached pixmap to the screen is insignificant when it comes to performance.
    Redrawing the scales shouldn't be a bottleneck either.

    Btw do you know rules of premature optimization?
    Rule 1 : Don't optimize!
    Rule 2 : Don't optimize jet!

    I'm guessing that rule 1 applies here

Similar Threads

  1. PyQt4 - part of a QPixmap not drawing correctly
    By emorris in forum Qt Programming
    Replies: 0
    Last Post: 16th February 2012, 15:17
  2. Minimize to Tray
    By QT8seven in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2011, 11:12
  3. Replies: 2
    Last Post: 23rd August 2011, 12:23
  4. Hide on Minimize
    By defunct in forum Qt Programming
    Replies: 9
    Last Post: 26th March 2009, 09:46
  5. Minimize other Window
    By johncharlesb in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2007, 16:22

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.