I have a form in which I want to periodically refresh its values(mostly labels but 2 comboboxes and 1 spinboxe). I have done this before with a QThread but this time I would like to do it with a QTimer. Would that be ok or would it potentially create problems like freezing the GUI. There are a couple of fields in the form that are both user editable and periodically refreshed.
UPDATE: im removing the QTimer because it is causing problems.
if all you do is refresh the form you should be okay but if you call long function that require calls to QCoreApplication::processEvents(); then you shouldn’t. I tried using the timer and I had problems which went away as soon as I removed the timer and used a thread in which I emited a signal to the main thread to refresh the form once the work was done.