Use Qt to lock orientation instead of platform-specific code.