Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwaylandquickextension.h File Reference
#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)
 

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; \
};
Definition qlist.h:74
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:67
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
const char className[16]
[1]
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:
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) \
QML_NAMED_ELEMENT(QmlType) \
QML_ADDED_IN_VERSION(1, 0) \
public: \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override {} \
void componentComplete() override { if (!isInitialized()) initialize(); } \
private: \
QList<QObject *> m_objects; \
};

Definition at line 80 of file qwaylandquickextension.h.

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( wayland_compositor_quick  )