Results 1 to 3 of 3

Thread: color bar mouse events

  1. #1
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    1

    Default color bar mouse events

    Hello,

    I'm using a QwtPlotSpectrogram with a color bar on the right axis. Is it possible to receive mouse events when the user clicks on the color bar? I'm specifically looking for the mouse position when the user press and releases a mouse button, as a method of selecting a region of that axis to zoom in on.

    Will.

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

    Default Re: color bar mouse events

    You can set up an event filter ( QObject::installEventFilter() ) for the scale widget.

    Uwe

  3. #3
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    1

    Default Re: color bar mouse events

    That works well, thanks.

    Will.

Similar Threads

  1. Mouse Events
    By Atomic_Sheep in forum Newbie
    Replies: 3
    Last Post: 25th April 2013, 12:44
  2. Replies: 3
    Last Post: 8th October 2011, 09:46
  3. Mouse events
    By Maluko_Da_Tola in forum Newbie
    Replies: 3
    Last Post: 25th August 2010, 06:55
  4. mouse events
    By xyzt in forum Newbie
    Replies: 3
    Last Post: 23rd March 2008, 11:14
  5. mouse moving don't produce mouse events
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 06:13

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.