this is a question to understand QTimer
. I create a QTimer()
event that run a function every 1000ms. This function lasts as long as the GUI is running. So that, I used QTimer()
in the main thread (GUI thread), I didn't create a QThread
for this timer event. My questions are:
1- Is using QTimer
in the GUI thread (Main thread), affects the functionality of the GUI at any time?
2- Do you recommend to create a QThread
and run this timer event on it, or it is not worth it and it's better to save resources. if yes, may you provide me how to move this timer to a QThread
?