qtCreator警告解决
警告
qtCreator Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use: QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors. QT_SCREEN_SCALE_FACTORS to set per-screen factors. QT_SCALE_FACTOR to set the application global scale factor.
不知道什么原因, 运行项目时候突然就报出了这个警告(可能是不经意间修改了什么),网上一搜全是 python调用库的警告,不是c++ qt的警告。
解决办法
删除 用户和系统的 环境变量。
“QT_DEVICE_PIXEL_RATIO”,键为"auto"
重启电脑。
本文来自博客园,作者:Hello_wshuo,转载请注明原文链接:https://www.cnblogs.com/Hellowshuo/p/15622100.html