Re: [PyQt] Two problems with QSystemTrayIcon

2008-04-03 Thread Adam Batkin
) on it first, but of course you have to do that within your main loop. So you'll probably need to hook your quit signal up to a helper function that will hide the tray, then actually exit. Hope this helps, -Adam Batkin duncan duncan wrote: Hello. I am trying to put an icon into the system tray

[PyQt] Problem/Bug with QSystemTrayIcon and QMenu

2007-09-06 Thread Adam Batkin
(on program exit), which all makes perfect sense since menu is set to an actual object. Thoughts? -Adam Batkin My Configuration: qt4: 4.3.1 PyQt4: PyQt-x11-gpl-4.3-snapshot-20070905 (also tested with 4.3 release, same results) Python: 2.5 SIP: 4.7

Re: [PyQt] Problem/Bug with QSystemTrayIcon and QMenu

2007-09-06 Thread Adam Batkin
Phil Thompson wrote: On Thursday 06 September 2007, Adam Batkin wrote: I have reduced my problem down to just a few lines of code, but the basic summary is that when trying to add a QMenu to a QSystemTrayIcon (tray.setContextMenu()), sometimes the menu deletes itself. Here is some sample code