GammaRay API Documentation  2.10.0
Public Member Functions | List of all members
GammaRay::MetaProperty Class Referenceabstract

Introspectable adaptor to non-QObject properties. More...

#include <metaproperty.h>

Public Member Functions

 MetaProperty (const char *name)
 Create a new MetaProperty instance for a property named name. More...
 
virtual bool isReadOnly () const =0
 Returns true if this property is read-only.
 
MetaObjectmetaObject () const
 Returns the class this property belongs to.
 
const char * name () const
 User-readable name of that property.
 
virtual void setValue (void *object, const QVariant &value)
 Allows changing the property value, assuming it's not read-only, for the instance object.
 
virtual const char * typeName () const =0
 Returns the name of the data type of this property.
 
virtual QVariant value (void *object) const =0
 Current value of the property for object object.
 

Detailed Description

Introspectable adaptor to non-QObject properties.

Constructor & Destructor Documentation

GammaRay::MetaProperty::MetaProperty ( const char *  name)
explicit

Create a new MetaProperty instance for a property named name.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
https://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
https://www.kdab.com/gammaray/