PDA

View Full Version : Control QT application window list



Wiplash
17th March 2012, 10:12
Hello
I want to programm my QT app.
1. The app adds a tray icon to the notification icon ( I have already managed that)
2. I do not want the app to create an entry in the window list, since there is already an icon in the notification area.
3. The program can not be quit, only minimized to the notification area.
4. The user can quit the program completely by right click in menu of the notification icon.
5. The user has the ability to open the program at startup in the notification area.
6. The program has an interiour status and the tray icon can change according to the status.
7. Left click on the icon minimizes or maximizes the program.
Regards

amleto
17th March 2012, 19:11
2. I think it's not possible to specify that through Qt for win7/vista
3. Look at closeevent http://qt-project.org/doc/qt-4.8/mainwindows-application.html#close-event-handler
4. look at bottom here, http://doc.qt.nokia.com/4.7-snapshot/desktop-systray-window-cpp.html , from this http://doc.qt.nokia.com/4.7-snapshot/desktop-systray.html
5. That is controlled from O/S.
6. this http://doc.qt.nokia.com/4.7-snapshot/desktop-systray.html again.
7. this http://doc.qt.nokia.com/4.7-snapshot/desktop-systray.html again. Probably.

Spitfire
20th March 2012, 14:44
2. If by "create an entry in the window list" you mean taskbar, then that's easy.
After you create your app and tray icon, show icon but don't show the app.

If you want app not to have icon on the taskbar event when it's open then it's still possible, just set Qt::SubWindow flag on that window.