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
QQmlDesignerMetaObject Class Reference

#include <qqmldesignermetaobject_p.h>

Inheritance diagram for QQmlDesignerMetaObject:
Collaboration diagram for QQmlDesignerMetaObject:

Public Member Functions

 ~QQmlDesignerMetaObject ()
Public Member Functions inherited from QQmlOpenMetaObject
 QQmlOpenMetaObject (QObject *, const QMetaObject *=nullptr)
 QQmlOpenMetaObject (QObject *, const QQmlRefPointer< QQmlOpenMetaObjectType > &)
 ~QQmlOpenMetaObject () override
QVariant value (const QByteArray &) const
bool setValue (const QByteArray &, const QVariant &, bool force=false)
void setValues (const QHash< QByteArray, QVariant > &, bool force=false)
QVariant value (int) const
void setValue (int, const QVariant &)
QVariantvalueRef (const QByteArray &)
bool hasValue (int) const
int count () const
QByteArray name (int) const
QObjectobject () const
virtual QVariant initialValue (int)
void setCached (bool)
bool autoCreatesProperties () const
void setAutoCreatesProperties (bool autoCreate)
QQmlOpenMetaObjectTypetype () const
QDynamicMetaObjectDataparent () const
void emitPropertyNotification (const QByteArray &propertyName)
void unparent ()
Public Member Functions inherited from QAbstractDynamicMetaObject
 ~QAbstractDynamicMetaObject ()
const QMetaObjecttoDynamicMetaObject (QObject *) const override
virtual int metaCall (QMetaObject::Call, int _id, void **)
Public Member Functions inherited from QDynamicMetaObjectData
virtual ~QDynamicMetaObjectData ()
virtual void objectDestroyed (QObject *)
Public Member Functions inherited from QMetaObject
const char * className () const
 Returns the class name.
const QMetaObjectsuperClass () const
 Returns the meta-object of the superclass, or \nullptr if there is no such object.
bool inherits (const QMetaObject *metaObject) const noexcept
 Returns true if the class described by this QMetaObject inherits the type described by metaObject; otherwise returns false.
QObjectcast (QObject *obj) const
const QObjectcast (const QObject *obj) const
QString tr (const char *s, const char *c, int n=-1) const
QMetaType metaType () const
int methodOffset () const
 Returns the method offset for this class; i.e.
int enumeratorOffset () const
 Returns the enumerator offset for this class; i.e.
int propertyOffset () const
 Returns the property offset for this class; i.e.
int classInfoOffset () const
 Returns the class information offset for this class; i.e.
int constructorCount () const
int methodCount () const
 Returns the number of methods in this class, including the number of methods provided by each base class.
int enumeratorCount () const
 Returns the number of enumerators in this class.
int propertyCount () const
 Returns the number of properties in this class, including the number of properties provided by each base class.
int classInfoCount () const
 Returns the number of items of class information in this class.
int indexOfConstructor (const char *constructor) const
int indexOfMethod (const char *method) const
 Finds method and returns its index; otherwise returns -1.
int indexOfSignal (const char *signal) const
 Finds signal and returns its index; otherwise returns -1.
int indexOfSlot (const char *slot) const
 Finds slot and returns its index; otherwise returns -1.
int indexOfEnumerator (const char *name) const
 Finds enumerator name and returns its index; otherwise returns -1.
int indexOfProperty (const char *name) const
 Finds property name and returns its index; otherwise returns -1.
int indexOfClassInfo (const char *name) const
 Finds class information item name and returns its index; otherwise returns -1.
QMetaMethod constructor (int index) const
QMetaMethod method (int index) const
 Returns the meta-data for the method with the given index.
QMetaEnum enumerator (int index) const
 Returns the meta-data for the enumerator with the given index.
QMetaProperty property (int index) const
 Returns the meta-data for the property with the given index.
QMetaClassInfo classInfo (int index) const
 Returns the meta-data for the item of class information with the given index.
QMetaProperty userProperty () const
template<typename... Args>
QtPrivate::Invoke::IfNotOldStyleArgs< QObject *, Args... > newInstance (Args &&... arguments) const
int static_metacall (Call, int, void **) const

Static Public Member Functions

static void registerNotifyPropertyChangeCallBack (void(*callback)(QObject *, const QQuickDesignerSupport::PropertyName &propertyName))
Static Public Member Functions inherited from QMetaObject
static bool checkConnectArgs (const char *signal, const char *method)
 Returns true if the signal and method arguments are compatible; otherwise returns false.
static bool checkConnectArgs (const QMetaMethod &signal, const QMetaMethod &method)
static QByteArray normalizedSignature (const char *method)
 Normalizes the signature of the given method.
static QByteArray normalizedType (const char *type)
static Connection connect (const QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=nullptr)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, int method_index)
static bool disconnectOne (const QObject *sender, int signal_index, const QObject *receiver, int method_index)
static void connectSlotsByName (QObject *o)
 Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form:
template<typename Func>
static Connection connect (const QObject *sender, const QMetaMethod &signal, const typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *context, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection)
static void activate (QObject *sender, int signal_index, void **argv)
static void activate (QObject *sender, const QMetaObject *, int local_signal_index, void **argv)
static void activate (QObject *sender, int signal_offset, int local_signal_index, void **argv)
template<typename Ret, typename... Args>
static void activate (QObject *sender, const QMetaObject *mo, int local_signal_index, Ret *ret, const Args &... args)
static bool invokeMethod (QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
 \threadsafe This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \obsolete [6.5] Please use the variadic overload of this function
static bool invokeMethod (QObject *obj, const char *member, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
static bool invokeMethod (QObject *obj, const char *member, Qt::ConnectionType type, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
static bool invokeMethod (QObject *obj, const char *member, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
template<typename ReturnArg, typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments)
template<typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, Args &&... arguments)
template<typename ReturnArg, typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments)
template<typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Args &&... arguments)
template<typename Func>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, typename QtPrivate::Callable< Func >::ReturnType *ret)
template<typename Func>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, typename QtPrivate::Callable< Func >::ReturnType *ret)
template<typename Func, typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args)
template<typename Func, typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, Args &&...args)
template<typename Func, typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args)
template<typename Func, typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Args &&...args)
static int metacall (QObject *, Call, int, void **)
template<const QMetaObject & MO>
static constexpr const QMetaObjectstaticMetaObject ()

Protected Member Functions

void createNewDynamicProperty (const QString &name)
int createProperty (const char *name, const char *passAlong) override
int openMetaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a)
int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
void notifyPropertyChange (int id)
void setValue (int id, const QVariant &value)
QVariant propertyWriteValue (int, const QVariant &) override
QObjectmyObject () const
QDynamicMetaObjectDatadynamicMetaObjectParent () const
int propertyOffset () const
int count () const
QByteArray name (int) const
Protected Member Functions inherited from QQmlOpenMetaObject
int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
int createProperty (const char *, const char *) override
virtual void propertyRead (int)
virtual void propertyWrite (int)
virtual void propertyWritten (int)
virtual void propertyCreated (int, QMetaPropertyBuilder &)
bool checkedSetValue (int index, const QVariant &value, bool force)

Static Protected Member Functions

static QQmlDesignerMetaObjectgetNodeInstanceMetaObject (QObject *object, QQmlEngine *engine)

Friends

class QQuickDesignerSupportProperties

Additional Inherited Members

Public Types inherited from QMetaObject
enum  Call {
  InvokeMetaMethod , ReadProperty , WriteProperty , ResetProperty ,
  CreateInstance , IndexOfMethod , RegisterPropertyMetaType , RegisterMethodArgumentMetaType ,
  BindableProperty , CustomCall , ConstructInPlace
}
Public Attributes inherited from QMetaObject
struct QMetaObject::Data d

Detailed Description

Definition at line 33 of file qqmldesignermetaobject_p.h.

Constructor & Destructor Documentation

◆ ~QQmlDesignerMetaObject()

QQmlDesignerMetaObject::~QQmlDesignerMetaObject ( )

Definition at line 86 of file qqmldesignermetaobject.cpp.

References nodeInstanceMetaObjectList.

Member Function Documentation

◆ count()

int QQmlDesignerMetaObject::count ( ) const
protected

Definition at line 230 of file qqmldesignermetaobject.cpp.

◆ createNewDynamicProperty()

void QQmlDesignerMetaObject::createNewDynamicProperty ( const QString & name)
protected

Definition at line 91 of file qqmldesignermetaobject.cpp.

◆ createProperty()

int QQmlDesignerMetaObject::createProperty ( const char * name,
const char * passAlong )
overrideprotectedvirtual

Reimplemented from QAbstractDynamicMetaObject.

Definition at line 104 of file qqmldesignermetaobject.cpp.

◆ dynamicMetaObjectParent()

QDynamicMetaObjectData * QQmlDesignerMetaObject::dynamicMetaObjectParent ( ) const
protected

Definition at line 127 of file qqmldesignermetaobject.cpp.

◆ getNodeInstanceMetaObject()

QQmlDesignerMetaObject * QQmlDesignerMetaObject::getNodeInstanceMetaObject ( QObject * object,
QQmlEngine * engine )
staticprotected

Definition at line 45 of file qqmldesignermetaobject.cpp.

References nodeInstanceMetaObjectList.

◆ metaCall()

int QQmlDesignerMetaObject::metaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
overrideprotectedvirtual

Reimplemented from QAbstractDynamicMetaObject.

Definition at line 165 of file qqmldesignermetaobject.cpp.

References myObject(), and notifyPropertyChange().

Here is the call graph for this function:

◆ myObject()

QObject * QQmlDesignerMetaObject::myObject ( ) const
inlineprotected

Definition at line 51 of file qqmldesignermetaobject_p.h.

Referenced by metaCall(), notifyPropertyChange(), and openMetaCall().

Here is the caller graph for this function:

◆ name()

QByteArray QQmlDesignerMetaObject::name ( int idx) const
protected

Definition at line 235 of file qqmldesignermetaobject.cpp.

◆ notifyPropertyChange()

void QQmlDesignerMetaObject::notifyPropertyChange ( int id)
protected

Definition at line 217 of file qqmldesignermetaobject.cpp.

References myObject(), notifyPropertyChangeCallBack, and propertyOffset().

Referenced by metaCall().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openMetaCall()

int QQmlDesignerMetaObject::openMetaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
protected

Definition at line 137 of file qqmldesignermetaobject.cpp.

References myObject().

Here is the call graph for this function:

◆ propertyOffset()

int QQmlDesignerMetaObject::propertyOffset ( ) const
protected

Definition at line 132 of file qqmldesignermetaobject.cpp.

Referenced by notifyPropertyChange().

Here is the caller graph for this function:

◆ propertyWriteValue()

QVariant QQmlDesignerMetaObject::propertyWriteValue ( int ,
const QVariant & value )
overrideprotectedvirtual

Reimplemented from QQmlOpenMetaObject.

Definition at line 122 of file qqmldesignermetaobject.cpp.

◆ registerNotifyPropertyChangeCallBack()

void QQmlDesignerMetaObject::registerNotifyPropertyChangeCallBack ( void(* callback )(QObject *, const QQuickDesignerSupport::PropertyName &propertyName))
static

Definition at line 240 of file qqmldesignermetaobject.cpp.

References notifyPropertyChangeCallBack.

◆ setValue()

void QQmlDesignerMetaObject::setValue ( int id,
const QVariant & value )
protected

Definition at line 114 of file qqmldesignermetaobject.cpp.

◆ QQuickDesignerSupportProperties

friend class QQuickDesignerSupportProperties
friend

Definition at line 69 of file qqmldesignermetaobject_p.h.


The documentation for this class was generated from the following files: