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"
重启电脑。

posted @ 2021-11-26 22:59  Hello_wshuo  阅读(343)  评论(0编辑  收藏  举报