![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrunnable.h>
Public Member Functions | |
template<typename Callable, if_callable< Callable > = true> | |
QGenericRunnable (Callable &&c) | |
~QGenericRunnable () override | |
void | run () override |
Implement this pure virtual function in your subclass. | |
![]() | |
constexpr | QRunnable () noexcept=default |
Constructs a QRunnable. | |
virtual | ~QRunnable () |
QRunnable virtual destructor. | |
bool | autoDelete () const |
Returns true is auto-deletion is enabled; false otherwise. | |
void | setAutoDelete (bool autoDelete) |
Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled. | |
Additional Inherited Members | |
![]() | |
template<typename Callable> | |
using | if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool> |
![]() | |
template<typename Callable, if_callable< Callable > = true> | |
static QRunnable * | create (Callable &&functionToRun) |
static QRunnable * | create (std::nullptr_t)=delete |
Definition at line 45 of file qrunnable.h.
|
inlineexplicit |
Definition at line 90 of file qrunnable.h.
|
override |
Definition at line 25 of file qrunnable.cpp.
|
overridevirtual |
Implement this pure virtual function in your subclass.
Implements QRunnable.
Definition at line 30 of file qrunnable.cpp.