Results 1 to 2 of 2

Thread: rubber band zoom on a qwtpolarplot

  1. #1
    Join Date
    Jul 2014
    Posts
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default rubber band zoom on a qwtpolarplot

    Has anyone implemented a rubber band zoom on the qwtpolar spectrogram example?
    The QwtPolarPicker has a setRubberBand method but when I set it to RectRubberBand
    in the polarpicker I get nothing.

    Thanks

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

    Default Re: rubber band zoom on a qwtpolarplot

    Quote Originally Posted by john_k View Post
    The QwtPolarPicker has a setRubberBand method but when I set it to RectRubberBand in the polarpicker I get nothing.
    For zooming you can use a combination of QwtPolarMagnifier and QwtPolarPanner, but there is no rubber band zooming implemented so far. If you want to do so you can start with a picker initialized like this:

    Qt Code:
    1. picker->setStateMachine( new QwtPickerDragRectMachine() );
    2. picker->setRubberBand( QwtPicker::RectRubberBand );
    To copy to clipboard, switch view to plain text mode 
    The "borderPath" warnings can be ignored - nevertheless I added a check in qwt_widget_overlay.cpp ( trunk + 6.1 branch ) to avoid them.

    Uwe

Similar Threads

  1. Multiple rubber band selections?
    By s7 in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2012, 01:23
  2. How do I clear the rubber band after a selection is done
    By aarelovich in forum Qt Programming
    Replies: 1
    Last Post: 15th July 2010, 12:29
  3. Replies: 2
    Last Post: 17th June 2010, 13:38
  4. How to draw rubber band using XOR
    By lni in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 12:13
  5. Rubber band artifacts?
    By mooreaa in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 18:19

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.