Similar article on
One of the first articles on working with Qt has an article on working with
. Now came the turn of the same material, but in Python using PyQt5 library.
This article will discuss how to write a simple application to PyQt5, which will be minimized to the system tray when you click a menu item in the system tray icon, or by pressing the close button.
Project structure in this case is minimal. There is only one file, which will be run. That is
The application itself will be as follows.
If the checkbox is checked, the application will minimize to the system tray, otherwise the application will be terminated. In addition, it is possible to fold the application to the system tray using the context menu of the application icon in the system tray.