[Qt-interest] qapplication constructor
Andreas Pakulat
apaku at gmx.de
Thu Jul 2 14:51:46 CEST 2009
On 02.07.09 12:43:40, Albert Sanchez wrote:
> I have solved the problem, but I think that it is a little strange that Qt
> decides to abort the execution when it can not open the display. Maybe the
> display will be available later: it is my case.
Then wait for the display to become available before creating the
QApplication object.
> Does Qt call an error handler in this circumstance at least? Does qt allow
> to construct QApplication as GUIenabled = false and then turn it to a GUI
> application?
Well, a QApplication without GUI is not overly useful (or at least you
could just as well use QCoreApplication).
You could most probably create a QApplication without GUI, then delete it
if X11 is ready and create a new one (that should work) but of course
anything that relies on the eventloop to run will be aborted/hang once the
first application is being deleted.
Andreas
--
You will hear good news from one you thought unfriendly to you.
More information about the Qt-interest-old
mailing list