I would like to make an app, that can minimize to system tray.
How can I do that?
Printable View
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.
Don't know wether it's working:
http://www.qtnode.net/wiki/Systray
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.
:confused::confused: But I still cannot hide to tray on minimize. The task bar icon still exist during minimize.
please advice.