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
QXcbConnection: Could not connect to display
The program has unexpectedly finished.
...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...?
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)