使用vscode的ssh插件远程运行开发板程序出错qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
将开发板连接显示器程序可以正常运行,用ssh远程运行程序就出现以上报错,根据错误说明,可以看出是qt图形显示的问题。根据这个网址https://stackoverflow.com/questions/68286171/qt-qpa-xcb-could-not-connect-to-display-0-qt-qpa-plugin-could-not-load-the-qt找到解决方法
export QT_QPA_PLATFORM=offscreen