Did you read QBasicTimer documentation? I guess not.
Timers (QBasicTimer and QTimer) when started they are running all the time but sending event on timeout. It is preferred to use QTimer then QBasicTimer. QTimer emits signal timeout() on timeout (surprise! :P) and QBasicTimer sends timer event to the given QObject subclass, but I don't see any timer event handling in MyClass...
Please read documentation about QBasicTimer and QTimer to get how to use them.
EDIT:
Oops... I was a bit late. But it is good that I'm not alone with opinion about thread's creator's documentation knowledge :P






Reply With Quote
Use of QBasicTimer instead of QTimer is a secondary issue.


Bookmarks