ubuntu qt.qpa.xcb: could not connect to display
1、问题

2、解决方法,增加如下内容
root@PC1:~/home/test# vim /etc/profile
export DISPLAY=:0.0

3、立即生效
root@PC1:/home/test# source /etc/profile
参考:https://blog.csdn.net/liyangbinbin/article/details/108401389
1、问题

2、解决方法,增加如下内容
root@PC1:~/home/test# vim /etc/profile
export DISPLAY=:0.0

3、立即生效
root@PC1:/home/test# source /etc/profile
参考:https://blog.csdn.net/liyangbinbin/article/details/108401389