QT_QPA_EGLFS_PHYSICAL_WIDTH
时间: 2023-08-07 19:04:53 浏览: 218
QT_QPA_EGLFS_PHYSICAL_WIDTH是一个环境变量,用于设置Qt在eglfs模式下的物理宽度。\[1\]在使用本机API的显示指标查询操作系统时,或者在eglfs情况下,可以依靠QT_QPA_EGLFS_PHYSICAL_WIDTH来设置显示的物理宽度。\[1\]如果你想手动设置QT_QPA_EGLFS_PHYSICAL_WIDTH的值,可以使用export命令来设置环境变量,例如export QT_QPA_EGLFS_PHYSICAL_WIDTH=1024。\[2\]这样就可以将QT_QPA_EGLFS_PHYSICAL_WIDTH设置为1024。如果你在运行Qt5时遇到了关于QT_QPA_EGLFS_PHYSICAL_WIDTH的错误信息,例如"Unable to query physical screen size, defaulting to 100dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).",你可以尝试手动设置QT_QPA_EGLFS_PHYSICAL_WIDTH和QT_QPA_EGLFS_PHYSICAL_HEIGHT的值来解决这个问题。\[3\]
#### 引用[.reference_title]
- *1* [嵌入式跨平台C++3D界面开发框架最新版Qt 5.6 支持高DPI缩放](https://blog.csdn.net/AABBbaby/article/details/50946084)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Linux嵌入式开发板中执行QT程序出现的几个问题](https://blog.csdn.net/qq_43445867/article/details/126529791)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文