qt.qpa.screen: QXcbConnection: Could not connect to display
时间: 2023-11-27 13:48:14 浏览: 190
Qt界面显示
引用\[1\]:No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display. 。 引用\[2\]:报错原因: 在本地登陆服务器,执行程序的可视化界面传递到本地的屏幕之中,但是报错 qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display. 二、解决方法 。 引用\[3\]:问题描述: 已经使用docker的方式安装好了OpenFOAM,本以为可以愉快的开始使用了,却没想到在后处理打开paraView的时候遇到问题,错误提示: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-openfoam’ No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display. 。
问题:qt.qpa.screen: QXcbConnection: Could not connect to display是什么问题?如何解决?
回答: qt.qpa.screen: QXcbConnection: Could not connect to display是一个错误提示,意味着无法连接到显示器。这个问题通常出现在本地登录服务器并尝试将程序的可视化界面传递到本地屏幕时。\[1\]解决这个问题的方法是设置正确的X显示环境。可以尝试在服务器上设置DISPLAY环境变量,或者使用SSH的-X或-Y选项进行远程连接。\[2\]另外,如果使用docker安装OpenFOAM并在后处理过程中遇到这个问题,可以尝试设置XDG_RUNTIME_DIR环境变量为/tmp/runtime-openfoam。\[3\]这些方法应该能够解决qt.qpa.screen: QXcbConnection: Could not connect to display的问题。
#### 引用[.reference_title]
- *1* [【记录】qt.qpa.screen: Could not connect to any X display 解决方案](https://blog.csdn.net/yaoyao_chen/article/details/124908362)[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* [qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display.](https://blog.csdn.net/jerry_liufeng/article/details/120247325)[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]
- *3* [Linux下启动paraview失败](https://blog.csdn.net/weixin_45793544/article/details/114263174)[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 ]
阅读全文