QXcbConnection:无法连接到显示“:0.0”,QT5的信号杀死了该进程

我在PC上交叉编译了Lemaker吉他的QT GUI应用程序,并且可以在Lemaker吉他上成功执行它。 但是,当我远程调试或运行应用程序时,遇到如下问题:

QXcbConnection: Could not connect to display

我按照QXcbConnection: Could not connect to display,when remotely debugging program with Qt5中的说明在 Projects-> Run Environment 中添加了环境变量(DISPLAY=":0.0")。这有错误

QXcbConnection: Could not connect to display ":0.0" Process killed by signal 

我还在工具>选项>构建和运行>套件>环境中添加了环境变量,但是错误仍然存​​在。我在Lemaker吉他终端(在Ubuntu mate上运行)上使用了xhost +,错误仍然存​​在。

liuleihua 回答:QXcbConnection:无法连接到显示“:0.0”,QT5的信号杀死了该进程

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3144798.html

大家都在问