Results 1 to 11 of 11

Thread: Custom plot selection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Custom plot selection

    You also need to implement:

    Qt Code:
    1. QRegion XQwtPicker::rubberBandMask() const override;
    To copy to clipboard, switch view to plain text mode 
    The smaller the region the better - but beside of environments like remote X11 you probably won't notice much difference when returning the complete canvas rectangle.
    In your case the optimal solution would be the rectangle spanned by the w points. See https://qwt.sourceforge.io/class_qwt...04f237062b75fc

    Have a look at the implementation of QwtPicker::rubberBandMask - it will help with how to find the rectangle.

    HTH,
    Uwe

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

    alketi (11th May 2020)

Similar Threads

  1. Replies: 1
    Last Post: 24th May 2012, 11:52
  2. [Qwt] selection of curve/plot/...
    By packman2012 in forum Qt-based Software
    Replies: 0
    Last Post: 5th April 2012, 09:39
  3. Replies: 2
    Last Post: 19th April 2010, 12:49
  4. Replies: 5
    Last Post: 10th February 2010, 11:08
  5. Custom items selection in qgraphicsscene
    By yonnak in forum Qt Programming
    Replies: 7
    Last Post: 28th March 2009, 11:32

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.