Results 1 to 11 of 11

Thread: Custom plot selection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    36
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Custom plot selection

    Thanks Uwe, that's essentially what I did for the drawing part, although in drawRubberband() I had created a new case for the combination of VLineRubberBand and a QwtPickerDragRectMachine. In my head, I was thinking of the selection more in the VLineRubberBand sense since I wanted the full vertical range of the plot, but your suggestion actually does seem more consistent since I really am selecting a rectangle.

    I hadn't stumbled across QwtPlotZoneItem yet so I'll check that out. The name of that class just didn't trigger that it would apply.

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

    Default Re: Custom plot selection

    Quote Originally Posted by SeanM View Post
    The name of that class just didn't trigger that it would apply.
    What would be a better one ?

    Uwe

  3. #3
    Join Date
    Jan 2014
    Posts
    36
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Custom plot selection

    I don't necessarily think there's a better name for it, now that you've pointed me at it and I know it exists, I think it's aptly named for what it does. I think I was thinking in too narrow of a context so I was looking for some sort of QwtSelectionXXX class, and didn't really wonder what else it could be called.

    In a more general sense, I think I was more expecting that the Qwt*Picker classes would have some sort of a keepVisible(bool) flag, which would indicate whether the selected area should remain visibly selected until the next selection sequence starts, since they're already doing the painting for creating the selection. Once I determined that wasn't the case, I just wasn't sure where to go next. And I didn't see any of the examples show either a selection where the selected area was filled with a QBrush, nor did I find an example where the selection visual was retained after the mouseReleaseEvent.

Similar Threads

  1. Replies: 1
    Last Post: 24th May 2012, 12:52
  2. [Qwt] selection of curve/plot/...
    By packman2012 in forum Qt-based Software
    Replies: 0
    Last Post: 5th April 2012, 10:39
  3. Replies: 2
    Last Post: 19th April 2010, 13:49
  4. Replies: 5
    Last Post: 10th February 2010, 12:08
  5. Custom items selection in qgraphicsscene
    By yonnak in forum Qt Programming
    Replies: 7
    Last Post: 28th March 2009, 12: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
  •  
Qt is a trademark of The Qt Company.