Qt: Show window before expanding widget. Fixes #4608