[Qt-interest] display disconnected

Andreas Pakulat apaku at gmx.de
Fri Jun 26 11:41:52 CEST 2009


On 26.06.09 10:43:52, Albert Sanchez wrote:
> Hi,
> Is there any way to know if a QApplication wasn't able to connect to the X
> display specified in QApplication(display,...) or in the $DISPLAY
> environment variable? I have googled a lot for it but i don't find anything,
> help please! :)

QApplication will call exit(1) when it cannot connect to the X Server. So
the program will abort.

Andreas

-- 
Love is in the offing.  Be affectionate to one who adores you.



More information about the Qt-interest-old mailing list