![]() |
Qt 6.x
The Qt SDK
|
#include <qobject_p.h>
Public Member Functions | |
QMetaCallEvent (ushort method_offset, ushort method_relative, QObjectPrivate::StaticMetaCallFunction callFunction, const QObject *sender, int signalId, void **args, QSemaphore *semaphore) | |
QMetaCallEvent (QtPrivate::QSlotObjectBase *slotObj, const QObject *sender, int signalId, void **args, QSemaphore *semaphore) | |
QMetaCallEvent (ushort method_offset, ushort method_relative, QObjectPrivate::StaticMetaCallFunction callFunction, const QObject *sender, int signalId, int nargs) | |
QMetaCallEvent (QtPrivate::QSlotObjectBase *slotObj, const QObject *sender, int signalId, int nargs) | |
~QMetaCallEvent () override | |
int | id () const |
const void *const * | args () const |
void ** | args () |
const QMetaType * | types () const |
QMetaType * | types () |
virtual void | placeMetaCall (QObject *object) override |
![]() | |
QAbstractMetaCallEvent (const QObject *sender, int signalId, QSemaphore *semaphore=nullptr) | |
~QAbstractMetaCallEvent () | |
virtual void | placeMetaCall (QObject *object)=0 |
const QObject * | sender () const |
int | signalId () const |
![]() | |
QEvent (Type type) | |
Constructs an event object of type type. | |
virtual | ~QEvent () |
Destroys the event. | |
Type | type () const |
Returns the event type. | |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false . | |
virtual void | setAccepted (bool accepted) |
bool | isAccepted () const |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
bool | isInputEvent () const noexcept |
bool | isPointerEvent () const noexcept |
bool | isSinglePointEvent () const noexcept |
virtual QEvent * | clone () const |
Creates and returns an identical copy of this event. | |
Static Public Member Functions | |
template<typename ... Args> | |
static QMetaCallEvent * | create (QtPrivate::QSlotObjectBase *slotObj, const QObject *sender, int signal_index, const Args &...argv) |
![]() | |
static int | registerEventType (int hint=-1) noexcept |
Definition at line 367 of file qobject_p.h.
QMetaCallEvent::QMetaCallEvent | ( | ushort | method_offset, |
ushort | method_relative, | ||
QObjectPrivate::StaticMetaCallFunction | callFunction, | ||
const QObject * | sender, | ||
int | signalId, | ||
void ** | args, | ||
QSemaphore * | semaphore | ||
) |
Used for blocking queued connections, just passes args through without allocating any memory.
Definition at line 535 of file qobject.cpp.
References args().
QMetaCallEvent::QMetaCallEvent | ( | QtPrivate::QSlotObjectBase * | slotO, |
const QObject * | sender, | ||
int | signalId, | ||
void ** | args, | ||
QSemaphore * | semaphore | ||
) |
Used for blocking queued connections, just passes args through without allocating any memory.
Definition at line 551 of file qobject.cpp.
References args().
QMetaCallEvent::QMetaCallEvent | ( | ushort | method_offset, |
ushort | method_relative, | ||
QObjectPrivate::StaticMetaCallFunction | callFunction, | ||
const QObject * | sender, | ||
int | signalId, | ||
int | nargs | ||
) |
Allocates memory for nargs; code creating an event needs to initialize the void* and int arrays by accessing args() and types(), respectively.
Definition at line 568 of file qobject.cpp.
QMetaCallEvent::QMetaCallEvent | ( | QtPrivate::QSlotObjectBase * | slotO, |
const QObject * | sender, | ||
int | signalId, | ||
int | nargs | ||
) |
Allocates memory for nargs; code creating an event needs to initialize the void* and int arrays by accessing args() and types(), respectively.
Definition at line 585 of file qobject.cpp.
|
override |
|
inline |
Definition at line 412 of file qobject_p.h.
References d.
|
inline |
Definition at line 411 of file qobject_p.h.
References d.
Referenced by QMetaCallEvent(), QMetaCallEvent(), and queued_activate().
|
inlinestatic |
Definition at line 391 of file qobject_p.h.
References args, i, and Q_CHECK_PTR().
|
inline |
Definition at line 410 of file qobject_p.h.
References d.
Implements QAbstractMetaCallEvent.
Definition at line 618 of file qobject.cpp.
References QMetaObject::InvokeMetaMethod, and QMetaObject::metacall().
|
inline |
Definition at line 414 of file qobject_p.h.
References d.
|
inline |
Definition at line 413 of file qobject_p.h.
References d.
Referenced by ~QMetaCallEvent(), and queued_activate().