setMouseTracking(true) should do the trick.
With this, MainWindow will receive mouse events even if no buttons are being pressed.