You can use
QThreadPoolto execute your code in a separate thread.
true(the default). Use
setAutoDelete()to change the auto-deletion flag.
QThreadPoolsupports executing the same
QRunnablemore than once by calling
tryStart(this) from within the
autoDeleteis enabled the
QRunnablewill be deleted when the last thread exits the run function. Calling
start()multiple times with the same
autoDeleteis enabled creates a race condition and is not recommended.
- Return type
trueis auto-deletion is enabled; false otherwise.
Implement this pure virtual function in your subclass.
_autoDelete – bool
Enables auto-deletion if
autoDeleteis true; otherwise auto-deletion is disabled.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.