[Qt-interest] qapplication constructor

Sean Harmer sean.harmer at maps-technology.com
Thu Jul 2 13:44:28 CEST 2009


On Thursday 02 Jul 2009 11: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.
>
> 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?
I don't know the answers without trying it, but one option is that you could 
derive your own class from QApplication to do whatever you like in your 
specific case such as calling an error handler, deferring connection to the X-
server etc.

Sean




More information about the Qt-interest-old mailing list