Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.2 beta on Ubuntu Saucy, QtCreator QXcbConnection: Could not connect to display
Qt 6.11 is out! See what's new in the release blog

Qt 5.2 beta on Ubuntu Saucy, QtCreator QXcbConnection: Could not connect to display

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 3.5k 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.
  • J Offline
    J Offline
    JesperWe
    wrote on last edited by
    #1

    I just installed the new 5.2 beta on a Ubntu Saucy x64 machine. Most things seem fine but when running a QML file from QtCreator I get

    Starting /home/me/Qt5.2.0/5.2.0-beta1/gcc_64/bin/qmlscene...
    QXcbConnection: Could not connect to display
    The program has unexpectedly finished.
    /home/user/Qt5.2.0/5.2.0-beta1/gcc_64/bin/qmlscene crashed

    ...even if the same file runs fine when I invoke the 5.2 qmlscene from a terminal.

    Smells like some install problem but I can't figure where to look...?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      saidinesh5
      wrote on last edited by
      #2

      Hey,

      Looks like your DISPLAY environment variable is not set to the right one, when the QtCreator is executing the qmlscene binary. Could you check the value of this display variable in Projects > Run > Run Evnironment.

      (I'm using the System Environment, and the default DISPLAY value for me is :0)

      Cheers

      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