A Qt replacement for KGlobal::ref and deref

Ingo Klöcker kloecker at kde.org
Thu Feb 10 21:07:53 GMT 2011


On Thursday 10 February 2011, Stephen Kelly wrote:
> Thiago Macieira wrote:
> > If the user can't get any kind of feedback, the application
> > shouldn't be running anymore.
> > 
> > System tray icons are a kind of feedback.
> 
> Again, I might be missing something here.
> 
> Does a systray icon already count as a window? If I set
> quitOnLastWindowClosed to true and the application creates a systray
> icon, and then I close the application window, does the application
> quit?

I guess so. At least, Qt's example for QSystemTrayIcon explicitly sets 
quitOnLastWindowClosed to false to prevent this from happening:
  http://doc.qt.nokia.com/latest/desktop-systray-main-cpp.html


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110210/3ddf20b3/attachment.sig>


More information about the kde-core-devel mailing list