Results 1 to 4 of 4

Thread: QwtPlotPicker stay visible after DoubleMouseClick

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2018
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QwtPlotPicker stay visible after DoubleMouseClick

    Hi Uwe,

    sorry i didn't get it.

    My CurveTracker class is derived from QwtPlotPicker.
    Where should i overload the transition function from QwtPickerMachine class?

    Do i have to write a own MyPickerMachine class and handle all the stuff there?
    Then i could overload the transistion function and could try to catch the double click event.
    Who does emit the selected signal?

    Thanks for further explanations

  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: QwtPlotPicker stay visible after DoubleMouseClick

    Quote Originally Posted by DSP View Post
    My CurveTracker class is derived from QwtPlotPicker.
    Where should i overload the transition function from QwtPickerMachine class?
    Inherit from whatever machine your picker is using ( in the curvetracker example it is a QwtPickerDragPointMachine ), extend/configure it by overloading its virtual methods ad then add it with:

    Qt Code:
    1. yourPicker->setStateMachine( yourStateMachine )
    To copy to clipboard, switch view to plain text mode 
    Of course you can also write your own state machine from scratch if you prefer that.

    Who does emit the selected signal?
    Well a picker is for selecting points/rects/polygons ( in your case a point ) and the selected signal emits the result of the selection, what should contain the position, where to insert the marker.

    Uwe

Similar Threads

  1. Replies: 3
    Last Post: 2nd January 2018, 13:04
  2. tooltip doesn't stay
    By mqt in forum Qt Programming
    Replies: 0
    Last Post: 16th July 2013, 14:51
  3. QMenu to stay open
    By xmeister in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2012, 02:17
  4. How to make a window stay on top of all others?
    By Momergil in forum Qt Programming
    Replies: 9
    Last Post: 16th July 2012, 20:25
  5. QScrollArea stay down
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 3rd June 2008, 11:14

Tags for this Thread

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.