Results 1 to 2 of 2

Thread: how to swap the axes of mouse movement

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2012
    Posts
    29
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default how to swap the axes of mouse movement

    HI all,

    I have an application which can be rum in two modes(the first one i sdefault and the second one is after rotating the same application by 90 degree). after rotation I am rotating the mouse pointer image also and it works fine but the problem is mouse movement is still in the same direction as the older one. that means if I move the mouse in left and right direction mouse pointer is moving in up and down direction as the application has been rotated by 90 degree angle.
    How to swap the axis of mouse movement when I am rotating the signal
    please Help anybody knows.

    Thanks in advance

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to swap the axes of mouse movement

    The mouse positioning and movement is a function of the operating system/window manager and outside the Qt application.
    You might find a operating system specific hack to get the axes swapped. On Windows the "joke" program SakasaMouse and the MafMouse http://www.maf-soft.de/mafmouse/ program can achieve this. You can find some example source http://www.math.uaa.alaska.edu/~afkj...ach/?q=node/70 in C#.

Similar Threads

  1. QTextEdit mouse movement filtering
    By been_1990 in forum Qt Programming
    Replies: 18
    Last Post: 13th March 2021, 09:15
  2. How can QML understand mouse movement?
    By Yonetici in forum Qt Quick
    Replies: 5
    Last Post: 19th July 2012, 09:29
  3. about the mouse movement on the touchsceen LCD
    By huzl in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 9th March 2012, 13:45
  4. Mouse movement problem in QGraphicsView
    By zgulser in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2009, 07:01
  5. Game mouse movement
    By chaosgeorge in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2006, 23:41

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
  •  
Qt is a trademark of The Qt Company.