Results 1 to 3 of 3

Thread: How to keep rubberband on the QwtPlot?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to keep rubberband on the QwtPlot?

    Hi,everyone

    I'm looking for solution for how to keep the rubberband diaplaying on the canvas after I select a rectangle region by using QwtPlotPicker(selected by left mouse button). And the last rubberband will redraw when i press left mouse button again.

    Please enlightened me. Thanks forward!
    Best Regards

    xujiqiang0927

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

    Default Re: How to keep rubberband on the QwtPlot?

    a) You could implement a plot item, that displays the shape of your rubberband and insert/remove it corresponding to the picker operations.

    b) Another solution is to implement your own type of state machine for the picker, that doesn't produce the QwtPickerMachine::End symbol.

    I don't know about the meaning of the rubberband in your context, but if it is something you want to have printed ( f.e. to a PDF document ) you have to do a).

    Uwe

  3. #3
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to keep rubberband on the QwtPlot?

    Thanks Uwe.
    The instance of my application is like this:
    1. I use picker to select a region with a rubberband
    2. keep the rubberband which i selected ,which could show to the me which exactly points i has selected
    3. then i can click a button to delete these points or another button to zoom into this region

    Could you give some more material suggestion? Thanks

    xujiqiang0927

Similar Threads

  1. rubberband selection
    By franco.amato in forum Qt Programming
    Replies: 0
    Last Post: 22nd March 2010, 18:55
  2. Replies: 6
    Last Post: 14th May 2009, 12:02
  3. RubberBand Problem
    By zgulser in forum Qt Programming
    Replies: 10
    Last Post: 16th February 2009, 07:05
  4. Drawing a Rubberband
    By daviddoria in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 14:32
  5. Rubberband zoom
    By sreedhar in forum Qt Programming
    Replies: 3
    Last Post: 12th September 2006, 11:38

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.