A simple example showing how to use a thread capable of running multiple methods on Qt