Thanks guys i have found another way to "Threading ", maybe wrongly executed .
I did it by declaring the "C" function into a function in the cpp file .
Then i used a Qtimer to connect the timer to the function and start it.
Thanks guys i have found another way to "Threading ", maybe wrongly executed .
I did it by declaring the "C" function into a function in the cpp file .
Then i used a Qtimer to connect the timer to the function and start it.
Try to use the QtConcurrent::run or the QtConcurrent::map instead the QThread.
So when can I use the QTimer ? I am trying to use the QTimer to run a function along with the Gui. Is it the right way to ?
A timer is for running some code in a specific moment in time. It is handled by an event like (almost) everything else in Qt.
Isnt It the same as running threads ? For now i am doing a school project with different groups all doing different part . for me i am doing the Gui. I need to integrate the rest of the codes my friends do . EG (Algorithm , Checking of a keypad. etc). Am i able to use QTimer for them since i want them to run at a specific moment of time when i am at the Gui page
anda_skoa (22nd July 2013)
I see so threading is always running in the background . But i been using timer to check the current time(Updatiing the time on the Label) , Isnt that considered as threadings?
Bookmarks