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

(b3021c257dd430f4019c31a3eb1d55d929642c76)

#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: \
QQmlListProperty<QObject> data() \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override {} \
void componentComplete() override { if (!isInitialized()) initialize(); } \
private: \
QList<QObject *> m_objects; \
};
The QQmlParserStatus class provides updates on the QML parser state.
static bool initialize()
Definition qctf.cpp:94
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: \
QQmlListProperty<QObject> data() \
{ \
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 )