QtBase
v6.3.1
|
#include <qpromise.h>
Public Member Functions | |
QPromise ()=default | |
QPromise (QPromise< T > &&other)=default | |
QPromise (const QFutureInterface< T > &other) | |
QPromise (QFutureInterface< T > &&other) noexcept | |
~QPromise () | |
QFuture< T > | future () const |
template<typename U , typename = QtPrivate::EnableIfSameOrConvertible<U, T>> | |
bool | addResult (U &&result, int index=-1) |
void | setException (const QException &e) |
void | setException (const std::exception_ptr &e) |
void | start () |
void | finish () |
void | suspendIfRequested () |
bool | isCanceled () const |
void | setProgressRange (int minimum, int maximum) |
void | setProgressValue (int progressValue) |
void | setProgressValueAndText (int progressValue, const QString &progressText) |
void | swap (QPromise< T > &other) noexcept |
Definition at line 60 of file qpromise.h.
Definition at line 69 of file qpromise.h.
|
inlinenoexcept |
Definition at line 70 of file qpromise.h.
Definition at line 72 of file qpromise.h.
|
inline |
Definition at line 90 of file qpromise.h.
Definition at line 94 of file qpromise.h.
|
inline |
Definition at line 107 of file qpromise.h.