Results 1 to 2 of 2

Thread: canvas of Qwtplot changing color when paning ?

  1. #1
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default canvas of Qwtplot changing color when paning ?

    Hi,


    i have a QwtPlot with a frame as the parent, and i apply some stylesheet to the frame, the problem is when i am panning the plot to change the interval , like shown on this picture.

    capture.png

    i tried to apply the same stylesheet to the canvas of the plot but nothing changed , any idea ?

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

    Default Re: canvas of Qwtplot changing color when paning ?

    QwtPanner grabs the content of the canvas into a pixmap when starting to pan - moving this pixmap around without doing any replot. This is very fast, but has of course this negative visual effect.

    So if your plot is not heavy and replots are fast you don't need to use a panner and can implement panning simply by installing an event filter for mouse events of the plot canvas, translating them into QwtPlot::setAxisScale() calls.

    Uwe

Similar Threads

  1. Set size of QwtPlot/canvas
    By Hudo in forum Qwt
    Replies: 0
    Last Post: 23rd August 2012, 19:10
  2. QwtPlot/Canvas and QPainter
    By carhun in forum Qwt
    Replies: 1
    Last Post: 20th August 2012, 13:14
  3. QwtPlot Canvas Size Hint?
    By umituzun84 in forum Qwt
    Replies: 8
    Last Post: 22nd September 2011, 16:21
  4. QwtPlot offset between Canvas and Scale
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 13:31
  5. Replies: 0
    Last Post: 4th May 2010, 09:45

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.