Results 1 to 2 of 2

Thread: Device specific, mouse motion event handling. Is it possible?

  1. #1
    Join Date
    Jun 2012
    Posts
    193
    Thanks
    20
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Device specific, mouse motion event handling. Is it possible?

    I want to filter mouse motion events from a specific device. When these events are occurring I don't want the pointer to move, but I do want to execute some code to indicate to the user that the events are occuring.

    But, there are actually two attached mice. I don't want to filter the events from any but the specified device.

    I don't see a way to identify a device associated with an XEvent.

    Is it possible to determine which device generated an event?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,324
    Thanks
    36
    Thanked 1,527 Times in 1,478 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Device specific, mouse motion event handling. Is it possible?

    Good question.

    The xorg X-Server seems to support having multiple mouse pointers: https://wiki.archlinux.org/index.php/Multi-pointer_X

    Cheers,
    _

Similar Threads

  1. OS specific events handling
    By oficjalne100 in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2011, 02:14
  2. Handling specific events only in the main loop
    By Patje in forum Qt Programming
    Replies: 1
    Last Post: 1st April 2011, 13:24
  3. Replies: 4
    Last Post: 29th August 2010, 18:16
  4. Mouse event handling beyond/outside the widget
    By keyur259 in forum Qt Programming
    Replies: 7
    Last Post: 20th January 2010, 05:14
  5. Handling mouse over event for QListWidget
    By Abc in forum Qt Programming
    Replies: 2
    Last Post: 22nd July 2008, 18:32

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.