Qt: Prevent window resize, fixes #4594