Unsolved qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display.
-
Hii
I'm using QT for designing my GUI for ROS.
It all running perfectly at host and client computer (both have qt with the same linux versions 18.04 and the same qt versions 5.13.1)the problem occurs when i start using SSH and trying to run my GUI.
the error while doing SSH is :qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display.
I have read and try this but the error still occurs.
anyone can help me?
tahnk you very much
best regards -
Hi,
Are you properly forwarding X with your ssh connection ?
-
@SGaist
hello
Do you mean XAuthority?I don't know how to forwarding X with my ssh connection
-
ssh -X
is a start.Then it also depends on how your remote machine is configured.
-
ssh add parameter -X
for example:
ssh jz@172.19.3.192 -X