[PyQt] About QSystemTrayIcon, I Need some tips
René 'Necoro' Neumann
lists at necoro.eu
Tue Jul 24 06:09:41 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Oh - sorry ...
I just did not realize, that my code only minimized it - and I had a
different callback, which hides the window on minimization - sorry
Gustavo A. Díaz schrieb:
> Ok, nice tip Necoro! Thanks, but is not what i wanted.
> I have already a context menu which shows and hide the app, but i want to
> replace that by doing on click on the systrayicon (left button click) to
> show and to hide:
> Click on systray, hide...
> Click on systray, show...
> and so on and on...
> By the way could you be more specific to my example app? Sorry to disturb
> you. :$
> Yes, i saw the QT example docs of systray, but does not help me much about
> the problem of when i close the app.
> And like i said, i dont know nothing about C++... indeed is not too
> to compare or convert the example to python/qt, but well... i am doing my
> I will search later about that problem on QT forums.
> 2007/7/23, lists at necoro.eu <lists at necoro.eu>:
>> Gustavo A. Díaz schrieb:
>> > Another thing i wan to implement is to click on the systray of the app
>> > hide it, and click again to show it. I was trying but without
>> this is how I've done it:
>> def cb_systray_activated (self, reason):
>> if reason != Qt.QSystemTrayIcon.Context: # do not react on
>> if self.windowState() & Qt.Qt.WindowMinimized: # window is
>> else: # window is not minimized
>> self.setWindowState(self.windowState() |
>> PyQt mailing list PyQt at riverbankcomputing.com
> PyQt mailing list PyQt at riverbankcomputing.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the PyQt