Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display.

    3rd Party Software
    3
    5
    26909
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      krist last edited by

      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

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Are you properly forwarding X with your ssh connection ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        K 1 Reply Last reply Reply Quote 0
        • K
          krist @SGaist last edited by

          @SGaist
          hello
          Do you mean XAuthority?

          I don't know how to forwarding X with my ssh connection

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            ssh -Xis a start.

            Then it also depends on how your remote machine is configured.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • Z
              zero to one last edited by

              ssh add parameter -X
              for example:
              ssh jz@172.19.3.192 -X

              1 Reply Last reply Reply Quote 2
              • First post
                Last post