[PyQt] How to minimize the QMainwindow to the system Tray

Nick Gaens mail at nickgaens.com
Mon Mar 8 20:36:33 GMT 2010


Where is the systray-part in that example?

On Mon, Mar 8, 2010 at 7:32 PM, Russell Valentine <russ at coldstonelabs.org>wrote:

> Reimplement changeEvent in QMainWindow, something like below:
>
>    def changeEvent(self, e):
>        if(e.type() == QtCore.QEvent.WindowStateChange and
> self.isMinimized()):
>            self.hide()
>            e.accept()
>            return
>        else:
>            super(Window, self).changeEvent(e)
>
> sindhuja venkat wrote:
>
>> Hi......I am doing an application in PyQt4.
>> Do anyone know how to reduce the application to the system Tray?
>> When I click the minimize button, the application should go to the tray.
>> If anybody knows, your help is most welcome.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Nick Gaens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100308/ac0a9336/attachment.html>


More information about the PyQt mailing list