Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to forward remote GUI to local screen when deploying from Qt Creator
QtWS25 Last Chance

How to forward remote GUI to local screen when deploying from Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
qt creatorx11ssh
2 Posts 2 Posters 1.9k 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.
  • SamsonovAntonS Offline
    SamsonovAntonS Offline
    SamsonovAnton
    wrote on last edited by
    #1

    When using Qt Creator [3.5.1] to automatically upload an application to a remote machine and run it there, the default environment it suggests is DISPLAY=:0.0, which is supposed to tell the application to draw its forms on the host-local X server, i. e. on the physical screen of the machine it is run on. However, I would like to redirect the GUI to my local screen, i. e. to the machine Qt Creator is at. How could that be accomplished, if at all?

    When deploying and running manually, it is trivial:

    local_host_name$ ssh -X remote_host_name
    remote_host_name$ echo $DISPLAY
    remote_host_name:10.0
    remote_host_name$ myapp
    

    Simply assigning remote_host_name:10.0 to DISPLAY in Qt Creator does not produce the desired effect, — application cannot find X server at the specified location. So, apparently, some additional actions are required, but I have no idea what could be it.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      azarubkin
      wrote on last edited by
      #2

      This topic is old, but nevertheless, for the sake of completeness...
      Do not close ssh session, otherwise the forwarded display would become invalid.

      1 Reply Last reply
      1

      • Login

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