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

src.corelib.concurrent.qfuture.cpp

//! [0]
        QFuture<QString> future = ...;

        QFuture<QString>::const_iterator i;
        for (i = future.constBegin(); i != future.constEnd(); ++i)
            cout << *i << endl;
//! [0]


//! [1]
        QFuture<QString> future;
        ...
        QFutureIterator<QString> i(future);
        while (i.hasNext())
            qDebug() << i.next();
//! [1]


//! [2]
        QFutureIterator<QString> i(future);
        i.toBack();
        while (i.hasPrevious())
          qDebug() << i.previous();
//! [2]



Generated by  Doxygen 1.6.0   Back to index