Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_corelib_concurrent_qfuturewatcher.cpp

//! [0]
// Instantiate the objects and connect to the finished signal.
MyClass myObject;
QFutureWatcher<int> watcher;
connect(&watcher, SIGNAL(finished()), &myObject, SLOT(handleFinished()));

// Start the computation.
QFuture<int> future = QtConcurrent::run(...);
watcher.setFuture(future);
//! [0]

Generated by  Doxygen 1.6.0   Back to index