Results 1 to 6 of 6

Thread: Help: How to add QwtPlotMarker at a FIX position?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    51
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help: How to add QwtPlotMarker at a FIX position?

    Anybody, please?
    Sincerely,

    Wieland J.

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help: How to add QwtPlotMarker at a FIX position?

    ok, next idea: you have to work with canvas pixel.

    first, you have to find the pixel position where your legend should appear (remember: in pexels, (0/0) is top-left)
    second, translate this position into axis values using qwtplot::transform or qwtplot::invtransform (sorry, I'm always confused which one translates in which direction...)
    third, do second step after each zoom (the zoomer emits a "zoomed(...)"-signal which you can connect to a custom slot)

    have fun
    Felix

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

    Default Re: Help: How to add QwtPlotMarker at a FIX position?

    Check the CpuPieMarker from the cpuplot example. Instead of the pie draw your legend.

    Uwe

Similar Threads

  1. QwtPlotMarker example
    By banita in forum Qwt
    Replies: 1
    Last Post: 24th May 2012, 13:19
  2. Automatic rescale QwtPlotMarker
    By gpsgek in forum Qwt
    Replies: 0
    Last Post: 23rd May 2010, 16:26
  3. Replies: 5
    Last Post: 25th November 2009, 12:55
  4. QwtPlotMarker segfault
    By viridis in forum Qwt
    Replies: 4
    Last Post: 17th September 2008, 13:22
  5. QwtPlotMarker confusion
    By baray98 in forum Qwt
    Replies: 3
    Last Post: 20th July 2008, 09:47

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.