Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Display problems
Qt 6.11 is out! See what's new in the release blog

Display problems

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.6k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mmaka
    wrote on last edited by
    #1

    I tried running my project in the Ubuntu terminal and I keep getting this problem:

    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-username'
    qt.qpa.screen: QXcbConnection: Could not connect to display
    Could not connect to any X display.

    Does anyone know why this is and how to solve it?

    jsulmJ 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by Kent-Dorfman
      #2

      what do you get when you echo $DISPLAY ?
      what is the output of xhost ?

      What happens if you enter XDG_RUNTIME_DIR=/tmp {qtprogram} in the terminal?

      The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

      1 Reply Last reply
      2
      • M mmaka

        I tried running my project in the Ubuntu terminal and I keep getting this problem:

        QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-username'
        qt.qpa.screen: QXcbConnection: Could not connect to display
        Could not connect to any X display.

        Does anyone know why this is and how to solve it?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mmaka Do you run X11? Wayland or something else? Do you try to run your app via VCN? More information is needed.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

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