Python GUIs: Clean up on exit — Stopping threads when closing a PyQt6 application — How to properly shut down background threads and workers when your application window is closed
When I click the X button to close the window, the threads keep running in the background. This is a very common situation when working with multithreaded PyQt6 applications.
