Results 1 to 7 of 7

Thread: A crosshair which tracks a displayed curve

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default A crosshair which tracks a displayed curve

    Hi,
    I need to implement the following functionality and am having trouble getting
    started.

    With a qwtplot having focus hitting a 'c' on the keyboard will cause a red cross
    hair to appear in the graph. Using the mouse or the arrow keys will cause the
    intersection point of the red crosshairs to follow the displayed curve.

    I can get the red crosshair to appear when I click in the plot, but it disappears
    as soon as I release the mouse.

    Having the crosshair follow the curve - I have no idea...

    Can someone point me in the right direction?


    Thanks!
    Mark
    Attached Images Attached Images

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.