以下成员源于类 QFuture 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated in 6.0)
bool
|
isPaused () const |
(deprecated in 6.0)
void
|
pause () |
(deprecated in 6.0)
void
|
setPaused (bool paused ) |
(deprecated in 6.0)
void
|
togglePaused () |
[deprecated in 6.0]
bool
QFuture::
isPaused
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 isSuspending () 或 isSuspended () 代替。
返回
true
if the asynchronous computation has been paused with the
pause
() function; otherwise returns
false
.
Be aware that the computation may still be running even though this function returns
true
。见
setPaused
() for more details. To check if pause actually took effect, use
isSuspended
() 代替。
另请参阅 toggleSuspended () 和 isSuspended ().
[deprecated in 6.0]
void
QFuture::
pause
()
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 suspend () 代替。
Pauses the asynchronous computation represented by this future. This is a convenience method that simply calls setPaused (true)。
另请参阅 resume ().
[deprecated in 6.0]
void
QFuture::
setPaused
(
bool
paused
)
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 setSuspended () 代替。
若 paused is true, this function pauses the asynchronous computation represented by the future. If the computation is already paused, this function does nothing. Any QFutureWatcher object that is watching this future will stop delivering progress and result ready signals while the future is paused. Signal delivery will continue once the future is resumed.
若 paused is false, this function resumes the asynchronous computation. If the computation was not previously paused, this function does nothing.
Be aware that not all computations can be paused. For example, the future returned by QtConcurrent::run() cannot be paused; but the future returned by QtConcurrent::mappedReduced() can.
另请参阅 isPaused (), suspend (), resume (),和 toggleSuspended ().
[deprecated in 6.0]
void
QFuture::
togglePaused
()
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 toggleSuspended () 代替。
Toggles the paused state of the asynchronous computation. In other words, if the computation is currently paused, calling this function resumes it; if the computation is running, it is paused. This is a convenience method for calling setPaused (! isPaused ()).
另请参阅 setSuspended (), suspend (),和 resume ().