Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我们正在使用 QML 制作前端软件。Windows 10系统缩放后,我们的软件变大了,超出了屏幕范围,所以我们想做一个最大支持的缩放范围。
我尝试使用 qputenv ("QT_SCREEN_SCALE_FACTORS") 方法,但是这种方法只在 QApplication 实例化之前有效。我想在软件运行时动态设置DPI并使其实时生效,还是只需要在执行qputenv("QT_SCREEN_SCALE_FACTORS")方法后进行更新操作?