On Sun, Aug 2, 2009 at 5:26 PM, Kermit Mei<[email protected]> wrote:
> Hello, I want to drag something, and I need to get the cursor's position
> in the dragMoveEvent(event). I can't use event->pos(), because is
> returns the position where the drag was make. But what I want is the
> current moved position, how can I get it?
> Kermit Mei
> Qt-interest mailing list
> [email protected]
dragMoveEvent is only called once when the drag starts. If you want
the position of the mouse as the mouse is moving, use the
mouseMoveEvent event handler.
For more information, see here:
Hope this is what you're looking for!
Qt-interest mailing list