Hello
how can i get mouse position over the window ?
Hello
how can i get mouse position over the window ?
Depends on what you want to do.
Generally the global position can be retrieved with QCursor::pos(), but maybe you need to track mouse movement which would require to implement the QWidget::mouseMoveEvent() handler.
Cheers,
_
and call QWidget::setMouseTracking() with "true".
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks