Results 1 to 3 of 3

Thread: Place Plot marks on mouse click event

  1. #1
    Join Date
    Aug 2009
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Place Plot marks on mouse click event

    Hello!

    I want to place some text marks on my plot, upon mouse click. Like in gnuplot.
    I disable zoom & pan by some button, and on pressing other button I want to click on a plot and place a mark on it.

    How can i implement this?

    There is no MouseEvents in QwtPlotMarker, and in the QwtPlot

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

    Default Re: Place Plot marks on mouse click event

    Use a QwtPlotPicker in PointSelection mode and connect its selected() signal to a slot, where you insert your markers.

    Uwe

  3. The following 2 users say thank you to Uwe for this useful post:

    Astronomy (9th February 2010), maybe78 (19th November 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Place Plot marks on mouse click event

    Thank you, Uwe!

    It works. Now I'll try to find the way to remove this markers from the plot

Similar Threads

  1. create mouse click event problem
    By yagabey in forum Qt Programming
    Replies: 6
    Last Post: 8th October 2009, 21:45
  2. can not get mouse double click event for QGraphicsItem
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 14th September 2009, 20:36
  3. Replies: 2
    Last Post: 4th August 2008, 07:44
  4. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 09:05
  5. mouse click event
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 1st May 2006, 09:24

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.