Qt 6.11 is out! See what's new in the release
blog
QThread or QTimer
General and Desktop
3
Posts
3
Posters
1.5k
Views
2
Watching
-
Hi, I'm writing a GUI programme that receives and sends some data through serial port.
I'm using the approach showed in the Qt documentation where data is read when a readyRead signal is emitted, and I do this in the mainwindow.
But now, I want to write data every 50 ms, so I thought about using the QTimer class. However I don't know if this is a good idea. Besides, I've read that it's a better advice to do this kind of processing in a separated thread, in the background, and leave the UI for simpler tasks.
So, which approach do you think it's a better practice?
Thanks