Results 1 to 2 of 2

Thread: QwtPlotDirectPainter usage with simple plots

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QwtPlotDirectPainter usage with simple plots

    Hello Uwe and Co!

    I'ld like to know if it's actually meaningful to use QwtPlotDirectPainter to improve efficiency in drawing QwtPlots in a embedded device (real time pretended), but when graphs are quite simple (lets say a 800 x 600 QwtPlot with max 8 simple QwtPlotCurves). Is there so much significance in using this class, or should I stay in KISS and just use replot() anyway?


    Thanks,

    Momergil
    May the Lord be with you. Always.

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

    Default Re: QwtPlotDirectPainter usage with simple plots

    QwtPlotDirectPainter renders something on top without repainting the rest of the scene. Using it makes sense when the rest of the scene doesn't change and of course it would take a significant amount of time to replot it.
    Another use case might be in situations, where your graphic system is slow f.e. when running an unaccelerated frame buffer device. Here QwtPlotDirectPainter might have an effect because only the region behind the incremental painting is blitted.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Momergil (29th April 2014)

Similar Threads

  1. Replies: 3
    Last Post: 8th April 2013, 07:06
  2. QPainter usage for simple 2D objects.
    By geowaverider in forum Newbie
    Replies: 0
    Last Post: 20th January 2012, 15:39
  3. Replies: 1
    Last Post: 18th June 2010, 15:34
  4. Replies: 1
    Last Post: 16th March 2010, 09:29
  5. Memory usage of simple Qt app
    By DiamonDogX in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2009, 06:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.