Results 1 to 2 of 2

Thread: Forwrad & Backward mouse movement

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Forwrad & Backward mouse movement

    Dear Friends
    Please tell me how would I track the forwrad mouse movement and backward mouse movement in Qt, When Right mouse button pressed and moved forward I want to zoom in and if right mouse button pressed moved backward I want zoom out.

    Any idea would be appreciated !

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Forwrad & Backward mouse movement

    As usually, pretend you have x and y axis. Just analyze is Xcurrent >,< or = Xprevious. The same with Y coordinate.
    I'm a rebel in the S.D.G.

Similar Threads

  1. Dymamic Painting outside paintEvent on mouse movement in QT4
    By shivam.priyadarshi in forum Qt Programming
    Replies: 7
    Last Post: 30th June 2012, 07:07
  2. Mouse movement problem in QGraphicsView
    By zgulser in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2009, 07:01
  3. Game mouse movement
    By chaosgeorge in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2006, 23:41
  4. setCanvas blocks mouse movement on QtCanvasView
    By YuriyRusinov in forum Qt Programming
    Replies: 8
    Last Post: 20th April 2006, 07:38

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.