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

  • 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...?

  • 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)


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.