[Qt-interest] display disconnected

Albert Sanchez ouferrat at gmail.com
Fri Jun 26 12:04:20 CEST 2009


Thanks Andreas,
Will the program really abort or will the QApplication.exec() return with
value 1? If it is the first case, isn't there any way to retry to connect?

Albert


On Fri, Jun 26, 2009 at 11:41 AM, Andreas Pakulat <apaku at gmx.de> wrote:

> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090626/2dced900/attachment.html 


More information about the Qt-interest-old mailing list