I'm not completely sure what you mean. If you want to get the current position of the mouse cursor in coordinates relative the widget that displays your image then you can do this:

QPoint currentPosition = widget->mapFromGlobal( QCursor::pos() );