Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.4.1
-
None
-
Windows 7
Description
Under windows (Windows 7 tested), the QApplication::aboutToQuit is not emitted if the application window is hidden and has a system tray icon.
The provided example is an application with a system tray icon. The window is hidden when minimized so that it stays visible only in the tray. Upon startup, the application creates a file in the user home, and cleans it when quitting. The cleanup is also done when the user closes its desktop session, thanks to the aboutToQuit signal. But if the session is closed while the application is minimized to the tray, the signal is not emitted and the file is not deleted. Next time the application starts, it shows a warning as the file was not cleaned properly.