Fix the issues with QTimer start/stop in different thread