Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickWindowQObjectCleanupJob Class Reference

#include <qquickwindow_p.h>

+ Inheritance diagram for QQuickWindowQObjectCleanupJob:
+ Collaboration diagram for QQuickWindowQObjectCleanupJob:

Public Member Functions

 QQuickWindowQObjectCleanupJob (QObject *o)
 
void run () override
 Implement this pure virtual function in your subclass.
 
- Public Member Functions inherited from QRunnable
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
 

Static Public Member Functions

static void schedule (QQuickWindow *window, QObject *object)
 
- Static Public Member Functions inherited from QRunnable
template<typename Callable , if_callable< Callable > = true>
static QRunnablecreate (Callable &&functionToRun)
 
static QRunnablecreate (std::nullptr_t)=delete
 

Public Attributes

QObjectobject
 

Additional Inherited Members

- Public Types inherited from QRunnable
template<typename Callable >
using if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool>
 

Detailed Description

Definition at line 297 of file qquickwindow_p.h.

Constructor & Destructor Documentation

◆ QQuickWindowQObjectCleanupJob()

QQuickWindowQObjectCleanupJob::QQuickWindowQObjectCleanupJob ( QObject * o)
inline

Definition at line 300 of file qquickwindow_p.h.

Referenced by schedule().

+ Here is the caller graph for this function:

Member Function Documentation

◆ run()

void QQuickWindowQObjectCleanupJob::run ( )
inlineoverridevirtual

Implement this pure virtual function in your subclass.

Implements QRunnable.

Definition at line 301 of file qquickwindow_p.h.

References object.

◆ schedule()

static void QQuickWindowQObjectCleanupJob::schedule ( QQuickWindow * window,
QObject * object )
inlinestatic

Definition at line 303 of file qquickwindow_p.h.

References QQuickWindowQObjectCleanupJob(), Q_ASSERT, and window().

Referenced by QQuickCanvasItem::~QQuickCanvasItem(), QQuickImage::~QQuickImage(), QQuickPaintedItem::~QQuickPaintedItem(), QQuickCanvasItem::releaseResources(), QQuickImage::releaseResources(), and QQuickPaintedItem::releaseResources().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ object

QObject* QQuickWindowQObjectCleanupJob::object

Definition at line 302 of file qquickwindow_p.h.

Referenced by run().


The documentation for this class was generated from the following file: