Hi, Benji.

Benji Weber wrote:
> Desired behaviour is that the programme will keep running, but I do
> not wish to have a window visible when there is not a message.
>
> I am using qtjambi-linux64-preview-4.4.0_01.
>
> I would appreciate if you could point out how I am doing it wrong.
>
>   

Excuse me if I'm misreading this, but your problem is that the 
application does not continue running after you have closed the window 
in the second case (when you run your test app with no arguments), is 
that right?

Qt Jambi's default behavior is to quit the application's event loop when 
the last window has been closed, otherwise any application which does 
not explicitly provide this functionality would hang indefinitely.

You can use the setQuitOnLastWindowClosed() accessor in QApplication to 
override this behavior:

    
http://doc.trolltech.com/qtjambi-4.4.0_01/doc/html/com/trolltech/qt/gui/QApplication.html#setQuitOnLastWindowClosed(boolean)

Set this to false and provide your own logic for closing the event loop, 
and it should solve your problem.

-- Eskil

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to