"QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);应该在main函数的开头处加入。\n\n示例代码如下:\n\nint main(int argc, char *argv[]) \n{\n QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);\n \n QApplication a(argc, argv);\n \n // 其他代码...\n \n return a.exec();\n}

Qt中禁用高DPI缩放:QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling)的使用方法

原文地址: https://www.cveoy.top/t/topic/pE1S 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录