PDA

View Full Version : QMouseEvent



shenakan
20th August 2009, 14:40
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.

spirit
20th August 2009, 14:53
no, there is no such method in Qt. you should calculate delta by yourself.