Results 1 to 2 of 2

Thread: Partial quick redraw of some QwtPlot elements

  1. #1
    Join Date
    Jun 2024
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Partial quick redraw of some QwtPlot elements

    Is there an alternative to the replot() method of the QwtPlot class? It is necessary to draw some elements located on QwtPlot (for example, QwtPlotMarker, which I move by 1 pixel when I click on the QPushButton), redrawing the entire QwtPlot space using the replot() method takes a lot of resources, which is why even one marker moves with slight jerks.

    I’m inclined to look towards partial redrawing, I discovered the QwtWidgetOverlay class, but I don’t really understand how to use it (you need to override the drawOverlay() and maskHint() methods, and what’s next is not clear)

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

    Default Re: Partial quick redraw of some QwtPlot elements

    Have a look at the itemeditor example.

Similar Threads

  1. Quick redraw of QWT chart
    By nayaga in forum Qwt
    Replies: 0
    Last Post: 5th June 2024, 14:25
  2. Replies: 2
    Last Post: 5th May 2020, 20:40
  3. Replies: 3
    Last Post: 5th July 2016, 17:13
  4. Replies: 1
    Last Post: 14th May 2014, 08:57
  5. partial repaint
    By cookie1909 in forum Qt Programming
    Replies: 2
    Last Post: 19th August 2009, 00:33

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.