Results 1 to 2 of 2

Thread: how to set labels to two different markers using a picker

  1. #1
    Join Date
    Oct 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default how to set labels to two different markers using a picker

    hello
    i am using qwt6.6.0 and qt 4.7.2 for fedora8
    i am using two different qwtplots in a single window.Each plot is having two vertical markers which show the xaxis point.
    I am using QwtPlotPicker's moved(QPoint &pos)signal to get the pos.x point.then i am placing marker1 to pos.x
    how to attach the picker with two different markers.

  2. #2
    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: how to set labels to two different markers using a picker

    Using QwtPlotPicker::moved is not a good idea as it replots for every mouse movements - what might be too slow if you have a more challenging scene. Better hide your markers at the beginning ( should be the moved() signal ) of your selection and show them at the end at the new position ( selected() ). While the selection is active you have the vertical line rubberband of the picker.

    To your question - what's the problem with connecting the picker signals with slots of several plots ?

    Uwe

Similar Threads

  1. QwtPolar picker
    By slux in forum Qwt
    Replies: 5
    Last Post: 11th May 2011, 10:37
  2. Picker text
    By MuzZviman in forum Qwt
    Replies: 1
    Last Post: 2nd June 2010, 09:49
  3. Replies: 0
    Last Post: 25th September 2009, 11:18
  4. Plot Picker x=0
    By sun in forum Qwt
    Replies: 2
    Last Post: 7th October 2008, 07:43
  5. Replies: 0
    Last Post: 27th May 2008, 01:00

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.