Regression was introduced in d0e854e9d8. Each time you hide() a widget its mousePress state is reset and mouseMoveEvent() / mouseReleaseEvent() handlers are never called. So you can't toggle (hide + show) widgets that are mouse-pressed. Fixes #4802.