Can anyone please tell me,when shoud i use choose QTimer or QThread in my qt application with small example scenario.
Thankyou.
Can anyone please tell me,when shoud i use choose QTimer or QThread in my qt application with small example scenario.
Thankyou.
Qt Developer !!!!!!!!!!!
QThread: Rarely. Very little in the average application requires threads in Qt.
QTimer: Quite often. Useful for repeating tasks or delayed execution of single tasks.
The two are not related.
Thankyou
But in my application i have to read data from piece of hardware and plotting this into qwtplot widget,so if i choose QTimer for updating plot it is very slow compared to QThread.
Qt Developer !!!!!!!!!!!
Yes you are right.
Thankyou
Qt Developer !!!!!!!!!!!
Bookmarks