The scenewidget doesn't receive any mouse events for about a second after toggling the visibility flag. No idea what is causing this.