how I can grab the mouse move even when I don't press a mouse button?
Guys,I have QWidget derived class. I seen that QAbstractScrollArea can get mouseMoveEvent when the mouse moves. But using just QWidget mouseMoveEvent handler, it is triggered only when there's a mousePressEvent (hold). So does someone knows how I can grab the mouse move even when I don't press a mouse button?
Sachin SinghPosted Nov 21, 2020, 2:14 AM
mouseMoveEvent()is called whenever the mouse moves while a mouse button is held down. This can be useful during drag and drop operations.setMouseTracking(true), you get mouse move events even when no buttons are held down.GopalPosted Feb 25, 2021, 10:01 AM
GopalPosted Nov 21, 2020, 2:28 AM