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

时间:2019-11-07 12:39:32

标签: linux qt 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 +,错误仍然存​​在。

0 个答案:

没有答案