//! [0] // Instantiate the objects and connect to the finished signal. MyClass myObject; QFutureWatcher watcher; connect(&watcher, SIGNAL(finished()), &myObject, SLOT(handleFinished())); // Start the computation. QFuture future = QtConcurrent::run(...); watcher.setFuture(future); //! [0]