I would like to make an app, that can minimize to system tray.
How can I do that?
I would like to make an app, that can minimize to system tray.
How can I do that?
this is system and/or window manager specific.
Specify under under which you want to implement this.
Under Windows 2000/XP
As theLSB said, this is a task of OS or WM. For windows XP and 2000 && Qt3 I used the Windows API Shell_NotifyIcon from shell32.dll.
I started to consturct a class for using it some time ago, but I didn't finish as I had to stop working with Qt.
Anyway, Qt3 NC for Windows has an example of SysTray, maybe, you can use it as reference. I don't know about this on Qt4, I haven't installed on Windows yet.
If you want my files, just ask me for them, there is a lot of work to do to make them perfect, but they are working.
In the meanwhile, this could help you
Hope it helps.
Cheers.
Kandalf
There's no place like ~
Don't know wether it's working:
http://www.qtnode.net/wiki/Systray
It's nice to be important but it's more important to be nice.
Anyone know how to implement hide to system tray at QMainWindow startup? It must not appear on the task bar on startup too.
Thanks in advance.
[EDITED] Fixed the problem. There is another show() function in the main.cpp by default Qt template in Visual Studio. I did removed it and then the problem is solved.
But I still cannot hide to tray on minimize. The task bar icon still exist during minimize.
please advice.
Last edited by sheeeng; 13th January 2009 at 06:35.
Bookmarks