Try this...
Give the Foo class a timeout() signal.
Create the QTimer object inside Foo (pass in a period etc.): hopefully you end up with the timer in the same thread as the Foo object.
Connect the timer's timeout() signal to Foo's timeout() signal. This will cause your foo object to emit timeout() when the internal timer emits timeout().
Bookmarks