Results 1 to 2 of 2

Thread: identify the sender when mouse event occur

  1. #1
    Join Date
    Apr 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile identify the sender when mouse event occur

    There are two mouse in system, when QMouseEvent occur, how to identify this event come from which mouse?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: identify the sender when mouse event occur

    There might be a way - but that is system specific - you should look what functions (if at all) are available on the window manager or probably even lower level to get the hardware id of the device causing the event.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 3
    Last Post: 12th May 2010, 13:11
  2. Mouse Event
    By cemshit in forum Newbie
    Replies: 1
    Last Post: 27th January 2010, 20:50
  3. How to keep the mouse event?
    By oscar721 in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2009, 09:48
  4. Mouse Event
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2009, 11:40
  5. How to identify event sender?
    By Caius Aérobus in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 10:14

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.