On 25/03/2008, Eskil Abrahamsen Blomfeldt <[EMAIL PROTECTED]> wrote: > 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.
Many thanks, I didn't realise this was required as the windows were only hidden. This does indeed solve the problem. There is another problem I encountered which is that the tray icon message is not properly positioned next to the tray icon if shown immediately after displaying the tray icon. It ends up being positioned near the middle of the screen. It seems to work fine if one waits a second or so after showing the tray icon before displaying the message. -- Benjamin Weber _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
