Can I set QT_AUTO_SCREEN_SCALE_FACTOR behavior via API?

前端 未结 1 1780
夕颜
夕颜 2021-01-22 07:08

Can I set the QT_AUTO_SCREEN_SCALE_FACTOR 1 behavior via an API call rather than by the environment variable? I want to detect if my Qt application is running on a

1条回答
  •  伪装坚强ぢ
    2021-01-22 07:33

    The following should work

    qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");

    0 讨论(0)
提交回复
热议问题