Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. qt.qpa.screen: QXcbConnection: Could not connect to display. Could not connect to any X display.
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
5 Posts 3 Posters 29.8k Views
  • 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 Offline
    K Offline
    krist
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • SGaistS SGaist

        Hi,

        Are you properly forwarding X with your ssh connection ?

        K Offline
        K Offline
        krist
        wrote on last edited by
        #3

        @SGaist
        hello
        Do you mean XAuthority?

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          1
          • Z Offline
            Z Offline
            zero to one
            wrote on last edited by
            #5

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

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved