The attribute needs to be set before the QGuiApplication is created or else it doesn't have any effect. BUG: 415874
mentioned in commit d513a424