Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
QDesignerMetaPropertyInterface is part of \QD's introspection interface and represents a property. More...
#include <abstractintrospection_p.h>
Public Types | |
enum | Kind { EnumKind , FlagKind , OtherKind } |
This enum indicates whether the property is of a special type. More... | |
enum | AccessFlag { ReadAccess = 0x0001 , WriteAccess = 0x0002 , ResetAccess = 0x0004 } |
These flags specify the access the property provides. More... | |
enum | Attribute { DesignableAttribute = 0x0001 , ScriptableAttribute = 0x0002 , StoredAttribute = 0x0004 , UserAttribute = 0x0008 } |
Various attributes of the property. More... | |
Public Member Functions | |
QDesignerMetaPropertyInterface () | |
Constructs a QDesignerMetaPropertyInterface object. | |
virtual | ~QDesignerMetaPropertyInterface () |
Destroys the QDesignerMetaPropertyInterface object. | |
virtual const QDesignerMetaEnumInterface * | enumerator () const =0 |
Returns the enumerator if this property's type is an enumerator type;. | |
virtual Kind | kind () const =0 |
Returns the type of the property. | |
virtual AccessFlags | accessFlags () const =0 |
Returns a combination of access flags. | |
virtual Attributes | attributes () const =0 |
Returns the attributes of the property. | |
virtual int | type () const =0 |
Returns the type of the property. | |
virtual QString | name () const =0 |
Returns the name of the property. | |
virtual QString | typeName () const =0 |
Returns the name of this property's type. | |
virtual int | userType () const =0 |
Returns this property's user type. | |
virtual bool | hasSetter () const =0 |
Returns whether getter and setter methods exist for this property. | |
virtual QVariant | read (const QObject *object) const =0 |
Reads the property's value from the given object. | |
virtual bool | reset (QObject *object) const =0 |
Resets the property for the given object with a reset method. | |
virtual bool | write (QObject *object, const QVariant &value) const =0 |
Writes value as the property's value to the given object. | |
QDesignerMetaPropertyInterface is part of \QD's introspection interface and represents a property.
\inmodule QtDesigner
The QDesignerMetaPropertyInterface class provides meta-data about a property.
Definition at line 45 of file abstractintrospection_p.h.
These flags specify the access the property provides.
\value ReadAccess Property can be read \value WriteAccess Property can be written \value ResetAccess Property can be reset to a default value
Enumerator | |
---|---|
ReadAccess | |
WriteAccess | |
ResetAccess |
Definition at line 51 of file abstractintrospection_p.h.
Various attributes of the property.
\value DesignableAttribute Property is designable (visible in \QD) \value ScriptableAttribute Property is scriptable \value StoredAttribute Property is stored, that is, not calculated \value UserAttribute Property is the property that the user can edit for the QObject
Enumerator | |
---|---|
DesignableAttribute | |
ScriptableAttribute | |
StoredAttribute | |
UserAttribute |
Definition at line 52 of file abstractintrospection_p.h.
This enum indicates whether the property is of a special type.
\value EnumKind The property is of an enumeration type \value FlagKind The property is of an flag type \value OtherKind The property is of another type
Enumerator | |
---|---|
EnumKind | |
FlagKind | |
OtherKind |
Definition at line 50 of file abstractintrospection_p.h.
|
default |
Constructs a QDesignerMetaPropertyInterface object.
|
virtualdefault |
Destroys the QDesignerMetaPropertyInterface object.
|
pure virtual |
Returns a combination of access flags.
|
pure virtual |
Returns the attributes of the property.
|
pure virtual |
Returns the enumerator if this property's type is an enumerator type;.
|
pure virtual |
Returns whether getter and setter methods exist for this property.
|
pure virtual |
Returns the type of the property.
|
pure virtual |
Returns the name of the property.
Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().
Reads the property's value from the given object.
Returns the value if it was able to read it; otherwise returns an invalid variant.
|
pure virtual |
Resets the property for the given object with a reset method.
Returns true if the reset worked; otherwise returns false.
|
pure virtual |
Returns the type of the property.
|
pure virtual |
Returns the name of this property's type.
|
pure virtual |
Returns this property's user type.
|
pure virtual |
Writes value as the property's value to the given object.
Returns true if the write succeeded; otherwise returns false.