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. QXcbConnection: Could not connect to display :0 (solved)
Qt 6.11 is out! See what's new in the release blog

QXcbConnection: Could not connect to display :0 (solved)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 28.3k 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    I cannot start QTcreator
    @
    under /opt/Qt/Tools/QtCreator/bin
    ./qtcreator
    Error: could not initialize GLX
    Aborted (core dumped)

    when i sudo su
    under /opt/Qt/Tools/QtCreator/bin
    sudo ./qtcreator
    No protocol specified
    QXcbConnection: Could not connect to display :0
    Aborted (core dumped)

    Answer is in the link below
    https://harishnavnit.wordpress.com/2014/03/06/removing-nvidia-x-drivers-to-solve-the-glx-error/

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

      [quote author="houmingc" date="1420514021"]I cannot start QTcreator
      @
      under /opt/Qt/Tools/QtCreator/bin
      ./qtcreator
      Error: could not initialize GLX
      Aborted (core dumped)
      [/quote]
      Sounds like broken opengl drivers.
      Have you made any changes in the system that may cause to break GLX?
      Do you run it in virtual machine?

      [quote author="houmingc" date="1420514021"]
      when i sudo su
      under /opt/Qt/Tools/QtCreator/bin
      sudo ./qtcreator
      No protocol specified
      QXcbConnection: Could not connect to display :0
      Aborted (core dumped)
      [/quote]
      Superuser does not have access to XWindow of a regular user unless you enable it using "xhost +" command.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreyc
        wrote on last edited by
        #3

        Another option.
        Is it possible that you were logged into remote machine with X11 forwarding disabled?

        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