Results 1 to 3 of 3

Thread: Getting mouse and button states (from a picker?)

  1. #1
    Join Date
    May 2010
    Posts
    24
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Getting mouse and button states (from a picker?)

    When a mouse click occurs on the canvas of a plot, how is the mouse button state, key state, and position of that click queried?

    I have plot with a canvas, that has a single point Picker. I've connect the Pickers selected signal to a slot in my class. The problem is, the slot is only called in response to unmodified left clicks. What I want is to be able to respond to any mouse click, with any modifier -- and my slot code with query the mouse button state and key state to determine what to do.

    Is this possible? If so, how?

    I've scoured the examples that come with Qwt, but none of them seems to have logic that does what I want.

  2. #2
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Getting mouse and button states (from a picker?)

    have a look at the event_filter example, you might find what you are looking for.

  3. #3
    Join Date
    May 2010
    Posts
    24
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Getting mouse and button states (from a picker?)

    Quote Originally Posted by jesse_mark View Post
    have a look at the event_filter example, you might find what you are looking for.
    I will take a look at that. Thank you.

Similar Threads

  1. QSlider and right mouse button
    By Abnormalia in forum Qt Programming
    Replies: 4
    Last Post: 17th March 2009, 13:13
  2. Replies: 1
    Last Post: 24th February 2009, 19:35
  3. mouse event: right button
    By mattia in forum Newbie
    Replies: 1
    Last Post: 30th October 2007, 09:00
  4. Mouse Over event on button
    By vishal.chauhan in forum Qt Programming
    Replies: 9
    Last Post: 10th January 2007, 06:03
  5. Middle Button Mouse
    By jaime in forum Qt Programming
    Replies: 1
    Last Post: 25th August 2006, 04:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.