- class QFutureInterfaceBase#
Synopsis#
Methods#
def
__init__()
def
cancel()
def
derefT()
def
hasException()
def
isCanceled()
def
isFinished()
def
isPaused()
def
isRunning()
def
isStarted()
def
isSuspended()
def
isSuspending()
def
isThrottled()
def
isValid()
def
launchAsync()
def
loadState()
def
mutex()
def
__ne__()
def
__eq__()
def
progressText()
def
progressValue()
def
queryState()
def
refT()
def
reportCanceled()
def
reportFinished()
def
reportStarted()
def
reset()
def
resultCount()
def
setFilterMode()
def
setLaunchAsync()
def
setPaused()
def
setRunnable()
def
setSuspended()
def
setThreadPool()
def
setThrottled()
def
swap()
def
threadPool()
def
togglePaused()
def
waitForResult()
def
waitForResume()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- class State#
- class CancelMode#
New in version 6.3.
- __init__(other)#
- Parameters:
other –
QFutureInterfaceBase
- __init__([initialState=QFutureInterfaceBase.State.NoState])
- Parameters:
initialState –
State
- cancel(mode)#
- Parameters:
mode –
CancelMode
- cancel()
- cancelAndFinish()#
- cleanContinuation()#
- derefT()#
- Return type:
bool
- expectedResultCount()#
- Return type:
int
- hasException()#
- Return type:
bool
- isCanceled()#
- Return type:
bool
- isChainCanceled()#
- Return type:
bool
- isFinished()#
- Return type:
bool
- isPaused()#
- Return type:
bool
Note
This function is deprecated.
- isProgressUpdateNeeded()#
- Return type:
bool
- isResultReadyAt(index)#
- Parameters:
index – int
- Return type:
bool
- isRunning()#
- Return type:
bool
- isRunningOrPending()#
- Return type:
bool
- isStarted()#
- Return type:
bool
- isSuspended()#
- Return type:
bool
- isSuspending()#
- Return type:
bool
- isThrottled()#
- Return type:
bool
- isValid()#
- Return type:
bool
- launchAsync()#
- Return type:
bool
- loadState()#
- Return type:
int
- __ne__(other)#
- Parameters:
other –
QFutureInterfaceBase
- Return type:
bool
- __eq__(other)#
- Parameters:
other –
QFutureInterfaceBase
- Return type:
bool
- progressMaximum()#
- Return type:
int
- progressMinimum()#
- Return type:
int
- progressText()#
- Return type:
str
- progressValue()#
- Return type:
int
- refT()#
- Return type:
bool
- reportCanceled()#
- reportFinished()#
- reportResultsReady(beginIndex, endIndex)#
- Parameters:
beginIndex – int
endIndex – int
- reportStarted()#
- reportSuspended()#
- reset()#
- resultCount()#
- Return type:
int
- rethrowPossibleException()#
- runContinuation()#
- setExpectedResultCount(resultCount)#
- Parameters:
resultCount – int
- setFilterMode(enable)#
- Parameters:
enable – bool
- setLaunchAsync(value)#
- Parameters:
value – bool
- setPaused(paused)#
- Parameters:
paused – bool
Note
This function is deprecated.
- setProgressRange(minimum, maximum)#
- Parameters:
minimum – int
maximum – int
- setProgressValue(progressValue)#
- Parameters:
progressValue – int
- setProgressValueAndText(progressValue, progressText)#
- Parameters:
progressValue – int
progressText – str
- setSuspended(suspend)#
- Parameters:
suspend – bool
- setThreadPool(pool)#
- Parameters:
pool –
QThreadPool
- setThrottled(enable)#
- Parameters:
enable – bool
- suspendIfRequested()#
- swap(other)#
- Parameters:
other –
QFutureInterfaceBase
- threadPool()#
- Return type:
- togglePaused()#
Note
This function is deprecated.
- toggleSuspended()#
- waitForFinished()#
- waitForNextResult()#
- Return type:
bool
- waitForResult(resultIndex)#
- Parameters:
resultIndex – int
- waitForResume()#