Results 1 to 2 of 2

Thread: QwtPlotPicker, need mouse events

  1. #1
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default QwtPlotPicker, need mouse events

    Hi,

    i made a class LeakageRatePicker and it is subclasses from QwtPlotPicker.
    I need the events
    MouseButtonRelease
    MouseButtonPress
    MouseMove
    and installed an eventFilter on canvas. The problem is that i overwrite the eventFilter from QwtPicker.
    My class is working, but i dont't get any trackerTextF at mouse position.

    How do i get these three events from QwtPlotPicker without installing my own eventFilter on canvas?

    Thx

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

    Default Re: QwtPlotPicker, need mouse events

    Use 2 different pickers or call the base class manually:

    Qt Code:
    1. virtual bool LeakageRatePicke::eventFilter( QObject *object, QEvent *event )
    2. {
    3. ...
    4. return QwtPlotPicker::eventFilter( object, event );
    5. }
    To copy to clipboard, switch view to plain text mode 
    Uwe

Similar Threads

  1. Replies: 4
    Last Post: 5th October 2013, 18:45
  2. Ignoring keyboard events in QwtPlotPicker
    By frankiefrank in forum Qwt
    Replies: 4
    Last Post: 23rd January 2012, 11:45
  3. Replies: 3
    Last Post: 8th October 2011, 09:46
  4. Replies: 4
    Last Post: 5th February 2011, 08:33
  5. Replies: 2
    Last Post: 1st January 2011, 17: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.