Qt 6.x
The Qt SDK
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
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
 

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 268 of file qquickwindow_p.h.

Constructor & Destructor Documentation

◆ QQuickWindowQObjectCleanupJob()

QQuickWindowQObjectCleanupJob::QQuickWindowQObjectCleanupJob ( QObject o)
inline

Definition at line 271 of file qquickwindow_p.h.

Member Function Documentation

◆ run()

void QQuickWindowQObjectCleanupJob::run ( )
inlineoverridevirtual

Implement this pure virtual function in your subclass.

Implements QRunnable.

Definition at line 272 of file qquickwindow_p.h.

References object.

◆ schedule()

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

Definition at line 274 of file qquickwindow_p.h.

References 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 273 of file qquickwindow_p.h.

Referenced by run().


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