Results 1 to 3 of 3

Thread: How to check if a QwtMarker is currently inside an QwtSymbol (Ellipse)?

  1. #1
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default How to check if a QwtMarker is currently inside an QwtSymbol (Ellipse)?

    The markers on my plot are constantly moving, and I want only the markers in the symbol to show (I would just detach them temporarily from the plot).

    Problem is, the Symbol uses QSize (I guess this is in pixels), and my points have their X/Y coordinates. So if I'm not wrong the only thing I know about my ellipse is it's center and size in pixel.

    Any Ideas how to solve this?

  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: How to check if a QwtMarker is currently inside an QwtSymbol (Ellipse)?

    You can use QwtPlot::canvasMap() to convert between plot and widget coordinates.

    Uwe

  3. #3
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default Re: How to check if a QwtMarker is currently inside an QwtSymbol (Ellipse)?

    That should do the trick. Thank you very much.

Similar Threads

  1. Need a check box inside QTableView
    By arcull in forum Newbie
    Replies: 0
    Last Post: 28th August 2015, 06:11
  2. How do I get red inside the ellipse?
    By rezas1000 in forum Newbie
    Replies: 1
    Last Post: 8th September 2014, 13:16
  3. Replies: 4
    Last Post: 29th March 2011, 20:33
  4. Replies: 1
    Last Post: 27th January 2011, 10:06
  5. Mouse over event on qwtmarker?
    By shud in forum Qwt
    Replies: 2
    Last Post: 20th September 2009, 15:12

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.