register mouse movement inside a particular window?
I have multiple windows and need to register mouse movements within one of those windows and call a function. It is a standard ui class with setcentralwidget() for a qvideowidget.
Is there a simple way to capture mousemovements just within one of those elements? (the window itself, the centralwidget or on a qvideowidget)?
Ive found I can get a mouse event on that window with mouseMoveEvent(QMouseEvent *event) function override, but it only seems to trigger the function if i move the mouse when holding down leftclick, which isn't great, can i change that to be any movement, clicked or not?
Solved, overrode the standard event() and just used event.type() == QEvent::hovermove to get what I needed.