Re: QPushButton mouse events
Are you sure that this is a border and not a 1px area that is maybe caused by the fact that a move from outside in the first pixel of the button is not realy a move but a mouseEnter? You can test this by moving the mouse in this border, maybe up and down in the left or right border. If you get mouseEnter and mouseLeave-events for the cases you miss a mouseMoveEvent, you can just use these.
Re: QPushButton mouse events
Aha. That was indeed the problem. Overriding enterEvent(QEvent*) worked. Thank you.
Re: QPushButton mouse events
A similar problem: what about accepting mouse events if the button(s) is/are held down? When the buttons are held down as the mouse enters the widget, it seems no events are fired; even hasMouse() returns false. I've tried the drag* events, but no joy.
Re: QPushButton mouse events
I think the widget where you actually pressed the mouse gets exclusive all mouseEvents until you release the mouse. For example, you can press the mouse over a QSlider or QDial and leave the widget but you are still able to set the value of the slider or dial until you release the mouse again.
Re: QPushButton mouse events
Yes. And there is no way around this?