Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandquickextension.h File Reference

(0a6ca388372c8b12b14f139f48252a969c8cffc6)

#include <QtWaylandCompositor/QWaylandCompositorExtension>
#include <QtQml/QQmlParserStatus>
#include <QtQml/QQmlListProperty>
Include dependency graph for qwaylandquickextension.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(className)
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS(className)
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS(className, QmlType)
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT(...)
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_4(className, QmlType, versionMajor, versionMinor)
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_2(className, QmlType)

Functions

 QT_REQUIRE_CONFIG (wayland_compositor_quick)

Macro Definition Documentation

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS ( className)
Value:
class Q_WAYLANDCOMPOSITOR_EXPORT className##QuickExtension : public className, public QQmlParserStatus \
{ \
/* qmake ignore Q_OBJECT */ \
Q_OBJECT \
Q_PROPERTY(QQmlListProperty<QObject> data READ data DESIGNABLE false) \
Q_CLASSINFO("DefaultProperty", "data") \
Q_INTERFACES(QQmlParserStatus) \
public: \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override {} \
void componentComplete() override { if (!isInitialized()) initialize(); } \
private: \
QList<QObject *> m_objects; \
};
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
The QQmlParserStatus class provides updates on the QML parser state.
virtual void classBegin()=0
Invoked after class creation, but before any properties have been set.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
static bool initialize()
Definition qctf.cpp:95
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
const char className[16]
Definition qwizard.cpp:100

Definition at line 19 of file qwaylandquickextension.h.

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS ( className)

Definition at line 38 of file qwaylandquickextension.h.

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS ( className,
QmlType )
Value:

Definition at line 80 of file qwaylandquickextension.h.

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT ( ...)
Value:

Definition at line 83 of file qwaylandquickextension.h.

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_2

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_2 ( className,
QmlType )
Value:
class Q_WAYLANDCOMPOSITOR_EXPORT className##QuickExtension : public className, \
{ \
/* qmake ignore Q_OBJECT */ \
Q_OBJECT \
Q_PROPERTY(QQmlListProperty<QObject> data READ data DESIGNABLE false) \
Q_CLASSINFO("DefaultProperty", "data") \
Q_INTERFACES(QQmlParserStatus) \
QML_NAMED_ELEMENT(QmlType) \
public: \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override { } \
void componentComplete() override \
{ \
if (!isInitialized()) \
initialize(); \
} \
\
private: \
QList<QObject *> m_objects; \
};

Definition at line 114 of file qwaylandquickextension.h.

◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_4

#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_ELEMENT_4 ( className,
QmlType,
versionMajor,
versionMinor )
Value:
class Q_WAYLANDCOMPOSITOR_EXPORT className##QuickExtension : public className, \
{ \
/* qmake ignore Q_OBJECT */ \
Q_OBJECT \
Q_PROPERTY(QQmlListProperty<QObject> data READ data DESIGNABLE false) \
Q_CLASSINFO("DefaultProperty", "data") \
Q_INTERFACES(QQmlParserStatus) \
QML_NAMED_ELEMENT(QmlType) \
QML_ADDED_IN_VERSION(versionMajor, versionMinor) \
public: \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override { } \
void componentComplete() override \
{ \
if (!isInitialized()) \
initialize(); \
} \
\
private: \
QList<QObject *> m_objects; \
};

Definition at line 86 of file qwaylandquickextension.h.

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( wayland_compositor_quick )