![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlxmllistmodel_p.h>
Public Member Functions | |
QQmlXmlListModelQueryRunnable (QQmlXmlListModelQueryJob &&job) | |
void | run () override |
Implement this pure virtual function in your subclass. | |
QFuture< QQmlXmlListModelQueryResult > | future () const |
![]() | |
virtual void | run ()=0 |
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. | |
template<typename Callable , if_callable< Callable > = true> | |
QGenericRunnable (Callable &&c) | |
~QGenericRunnable () override | |
void | run () override |
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 196 of file qqmlxmllistmodel_p.h.
|
explicit |
Definition at line 805 of file qqmlxmllistmodel.cpp.
References QRunnable::setAutoDelete().
QFuture< QQmlXmlListModelQueryResult > QQmlXmlListModelQueryRunnable::future | ( | ) | const |
Definition at line 823 of file qqmlxmllistmodel.cpp.
References QPromise< T >::future().
|
overridevirtual |
Implement this pure virtual function in your subclass.
Implements QRunnable.
Definition at line 811 of file qqmlxmllistmodel.cpp.
References QPromise< T >::addResult(), QPromise< T >::finish(), QPromise< T >::isCanceled(), QQmlXmlListModelQueryJob::queryId, and QPromise< T >::start().