Results 1 to 2 of 2

Thread: QMouseEvent

  1. #1
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    13
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QMouseEvent

    I would like to get the deltaX and the deltaY from the previous position and current position of the move. There is a way to get this delta from qt ?

    I use it to move a picture inside a widget when a button is pressed.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMouseEvent

    no, there is no such method in Qt. you should calculate delta by yourself.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. The following user says thank you to spirit for this useful post:

    shenakan (20th August 2009)

Similar Threads

  1. QMouseEvent with two mice
    By yun in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2009, 14:42
  2. help needed in QMouseEvent
    By aj2903 in forum Qt Programming
    Replies: 21
    Last Post: 14th February 2009, 12:15
  3. qmouseEvent handling
    By nass in forum Qt Tools
    Replies: 9
    Last Post: 13th October 2006, 09:55
  4. How to get color of pixel or point by QMouseEvent
    By Krishnacins in forum Newbie
    Replies: 4
    Last Post: 28th May 2006, 02:46
  5. QToolBox and QMouseEvent
    By mickey in forum Qt Programming
    Replies: 6
    Last Post: 1st February 2006, 12:57

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.