PythonQt.QtCore.QRunnable · declarations 001
Back to PythonQt.QtCore.QRunnable
autoDelete
autoDelete() -> bool
X.autoDelete() -> bool
Supplemental documentation: Qt 5 reference:
bool QRunnable::autoDelete() const
Returns true is auto-deletion is enabled; false otherwise.
If auto-deletion is enabled, QThreadPool will automatically delete this runnable after calling run(); otherwise, ownership remains with the application programmer.
See also setAutoDelete() and QThreadPool.
Upstream PySide2 reference signatures (binding differences may apply):
autoDelete(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qrunnable.html#autoDelete
run
run() -> None
X.run()
Supplemental documentation: Qt 5 reference:
[pure virtual] void QRunnable::run()
Implement this pure virtual function in your subclass.
Upstream PySide2 reference signatures (binding differences may apply):
run(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qrunnable.html#run
setAutoDelete
setAutoDelete(_autoDelete: bool) -> None
X.setAutoDelete(_autoDelete)
Supplemental documentation: Qt 5 reference:
void QRunnable::setAutoDelete(bool autoDelete)
Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled.
If auto-deletion is enabled, QThreadPool will automatically delete this runnable after calling run(); otherwise, ownership remains with the application programmer.
Note that this flag must be set before calling QThreadPool::start(). Calling this function after QThreadPool::start() results in undefined behavior.
See also autoDelete() and QThreadPool.
Upstream PySide2 reference signatures (binding differences may apply):
setAutoDelete(self, _autoDelete: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qrunnable.html#setAutoDelete