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
qcoreevent.h File Reference

(c0d6b22a39f20bb4f6da9510acae704cf6be91a5)

#include <QtCore/qnamespace.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qobjectdefs.h>
+ Include dependency graph for qcoreevent.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QEvent
 \inmodule QtCore More...
 
struct  QEvent::InputEventTag
 
struct  QEvent::PointerEventTag
 
struct  QEvent::SinglePointEventTag
 
class  QTimerEvent
 \inmodule QtCore More...
 
class  QChildEvent
 \inmodule QtCore More...
 
class  QDynamicPropertyChangeEvent
 \inmodule QtCore More...
 

Macros

#define Q_EVENT_DISABLE_COPY(Class)
 
#define Q_DECL_EVENT_COMMON(Class)
 
#define Q_IMPL_EVENT_COMMON(Class)
 

Macro Definition Documentation

◆ Q_DECL_EVENT_COMMON

#define Q_DECL_EVENT_COMMON ( Class)
Value:
protected: \
Class(const Class &); \
Class(Class &&) = delete; \
Class &operator=(const Class &other) = default; \
Class &operator=(Class &&) = delete; \
public: \
Class* clone() const override; \
~Class() override; \
private:
QSharedPointer< T > other(t)
[5]

Definition at line 20 of file qcoreevent.h.

◆ Q_EVENT_DISABLE_COPY

#define Q_EVENT_DISABLE_COPY ( Class)
Value:
protected: \
Class(const Class &) = default; \
Class(Class &&) = delete; \
Class &operator=(const Class &other) = default; \
Class &operator=(Class &&) = delete

Definition at line 13 of file qcoreevent.h.

◆ Q_IMPL_EVENT_COMMON

#define Q_IMPL_EVENT_COMMON ( Class)
Value:
Class::Class(const Class &) = default; \
Class::~Class() = default; \
Class* Class::clone() const \
{ \
auto c = new Class(*this); \
[[maybe_unused]] QEvent *e = c; \
/* check that covariant return is safe to add */ \
Q_ASSERT(reinterpret_cast<quintptr>(c) == reinterpret_cast<quintptr>(e)); \
return c; \
}
\inmodule QtCore
Definition qcoreevent.h:45
const GLubyte * c
size_t quintptr
Definition qtypes.h:167

Definition at line 31 of file qcoreevent.h.