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
QDesignerMetaObjectInterface Class Referenceabstract

QDesignerMetaObjectInterface is part of \QD's introspection interface and provides meta-information about Qt objects. More...

#include <abstractintrospection_p.h>

+ Collaboration diagram for QDesignerMetaObjectInterface:

Public Member Functions

 QDesignerMetaObjectInterface ()
 Constructs a QDesignerMetaObjectInterface object.
 
virtual ~QDesignerMetaObjectInterface ()
 Destroys the QDesignerMetaObjectInterface object.
 
virtual QString className () const =0
 Returns the class name.
 
virtual const QDesignerMetaEnumInterfaceenumerator (int index) const =0
 Returns the meta-data for the enumerator with the given index.
 
virtual int enumeratorCount () const =0
 Returns the number of enumerators in this class.
 
virtual int enumeratorOffset () const =0
 Returns the enumerator offset for this class; i.e.
 
virtual int indexOfEnumerator (const QString &name) const =0
 Finds enumerator name and returns its index; otherwise returns -1.
 
virtual int indexOfMethod (const QString &method) const =0
 Finds method and returns its index; otherwise returns -1.
 
virtual int indexOfProperty (const QString &name) const =0
 Finds property name and returns its index; otherwise returns -1.
 
virtual int indexOfSignal (const QString &signal) const =0
 Finds signal and returns its index; otherwise returns -1.
 
virtual int indexOfSlot (const QString &slot) const =0
 Finds slot and returns its index; otherwise returns -1.
 
virtual const QDesignerMetaMethodInterfacemethod (int index) const =0
 Returns the meta-data for the method with the given index.
 
virtual int methodCount () const =0
 Returns the number of methods in this class.
 
virtual int methodOffset () const =0
 Returns the method offset for this class; i.e.
 
virtual const QDesignerMetaPropertyInterfaceproperty (int index) const =0
 Returns the meta-data for the property with the given index.
 
virtual int propertyCount () const =0
 Returns the number of properties in this class.
 
virtual int propertyOffset () const =0
 Returns the property offset for this class; i.e.
 
virtual const QDesignerMetaObjectInterfacesuperClass () const =0
 Returns the meta-object of the superclass, or 0 if there is no such object.
 
virtual const QDesignerMetaPropertyInterfaceuserProperty () const =0
 Returns the property that has the USER flag set to true.
 

Detailed Description

QDesignerMetaObjectInterface is part of \QD's introspection interface and provides meta-information about Qt objects.

Since
4.4

\inmodule QtDesigner

The QDesignerMetaObjectInterface class provides meta-data about Qt objects. For a given object, it can be obtained by querying QDesignerIntrospectionInterface.

See also
QDesignerIntrospectionInterface

Definition at line 100 of file abstractintrospection_p.h.

Constructor & Destructor Documentation

◆ QDesignerMetaObjectInterface()

QDesignerMetaObjectInterface::QDesignerMetaObjectInterface ( )
default

Constructs a QDesignerMetaObjectInterface object.

◆ ~QDesignerMetaObjectInterface()

QDesignerMetaObjectInterface::~QDesignerMetaObjectInterface ( )
virtualdefault

Destroys the QDesignerMetaObjectInterface object.

Member Function Documentation

◆ className()

virtual QString QDesignerMetaObjectInterface::className ( ) const
pure virtual

Returns the class name.

◆ enumerator()

virtual const QDesignerMetaEnumInterface * QDesignerMetaObjectInterface::enumerator ( int index) const
pure virtual

Returns the meta-data for the enumerator with the given index.

◆ enumeratorCount()

virtual int QDesignerMetaObjectInterface::enumeratorCount ( ) const
pure virtual

Returns the number of enumerators in this class.

◆ enumeratorOffset()

virtual int QDesignerMetaObjectInterface::enumeratorOffset ( ) const
pure virtual

Returns the enumerator offset for this class; i.e.

the index position of this class's first enumerator.

◆ indexOfEnumerator()

virtual int QDesignerMetaObjectInterface::indexOfEnumerator ( const QString & name) const
pure virtual

Finds enumerator name and returns its index; otherwise returns -1.

◆ indexOfMethod()

virtual int QDesignerMetaObjectInterface::indexOfMethod ( const QString & method) const
pure virtual

Finds method and returns its index; otherwise returns -1.

◆ indexOfProperty()

virtual int QDesignerMetaObjectInterface::indexOfProperty ( const QString & name) const
pure virtual

Finds property name and returns its index; otherwise returns -1.

◆ indexOfSignal()

virtual int QDesignerMetaObjectInterface::indexOfSignal ( const QString & signal) const
pure virtual

Finds signal and returns its index; otherwise returns -1.

◆ indexOfSlot()

virtual int QDesignerMetaObjectInterface::indexOfSlot ( const QString & slot) const
pure virtual

Finds slot and returns its index; otherwise returns -1.

◆ method()

virtual const QDesignerMetaMethodInterface * QDesignerMetaObjectInterface::method ( int index) const
pure virtual

Returns the meta-data for the method with the given index.

◆ methodCount()

virtual int QDesignerMetaObjectInterface::methodCount ( ) const
pure virtual

Returns the number of methods in this class.

These include ordinary methods, signals, and slots.

◆ methodOffset()

virtual int QDesignerMetaObjectInterface::methodOffset ( ) const
pure virtual

Returns the method offset for this class; i.e.

the index position of this class's first member function.

◆ property()

virtual const QDesignerMetaPropertyInterface * QDesignerMetaObjectInterface::property ( int index) const
pure virtual

Returns the meta-data for the property with the given index.

◆ propertyCount()

virtual int QDesignerMetaObjectInterface::propertyCount ( ) const
pure virtual

Returns the number of properties in this class.

◆ propertyOffset()

virtual int QDesignerMetaObjectInterface::propertyOffset ( ) const
pure virtual

Returns the property offset for this class; i.e.

the index position of this class's first property.

◆ superClass()

virtual const QDesignerMetaObjectInterface * QDesignerMetaObjectInterface::superClass ( ) const
pure virtual

Returns the meta-object of the superclass, or 0 if there is no such object.

◆ userProperty()

virtual const QDesignerMetaPropertyInterface * QDesignerMetaObjectInterface::userProperty ( ) const
pure virtual

Returns the property that has the USER flag set to true.


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