Fix focus handling when the application has QAxWidgets.