Seems you need to enable mouse tracking for widget1, see:
void setMouseTracking(bool enable)
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.