QDesignerMetaPropertyInterface Class

QDesignerMetaPropertyInterface is part of Qt Designer's introspection interface and represents a property. More...

Header: #include <QDesignerMetaPropertyInterface>

Public Types

enum AccessFlag { ReadAccess, WriteAccess, ResetAccess }
flags AccessFlags
enum Attribute { DesignableAttribute, ScriptableAttribute, StoredAttribute, UserAttribute }
flags Attributes
enum Kind { EnumKind, FlagKind, OtherKind }

Public Functions

Detailed Description

\internal\since 4.4

\inmoduleQtDesigner

The QDesignerMetaPropertyInterface class provides meta-data about a property.

See also QDesignerMetaObjectInterface.

Member Type Documentation

enum QDesignerMetaPropertyInterface::AccessFlag
flags QDesignerMetaPropertyInterface::AccessFlags

These flags specify the access the property provides.

ConstantValueDescription
QDesignerMetaPropertyInterface::ReadAccess0x0001Property can be read
QDesignerMetaPropertyInterface::WriteAccess0x0002Property can be written
QDesignerMetaPropertyInterface::ResetAccess0x0004Property can be reset to a default value

The AccessFlags type is a typedef for QFlags<AccessFlag>. It stores an OR combination of AccessFlag values.

enum QDesignerMetaPropertyInterface::Attribute
flags QDesignerMetaPropertyInterface::Attributes

Various attributes of the property.

ConstantValueDescription
QDesignerMetaPropertyInterface::DesignableAttribute0x0001Property is designable (visible in Qt Designer)
QDesignerMetaPropertyInterface::ScriptableAttribute0x0002Property is scriptable
QDesignerMetaPropertyInterface::StoredAttribute0x0004Property is stored, that is, not calculated
QDesignerMetaPropertyInterface::UserAttribute0x0008Property is the property that the user can edit for the QObject

The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.

enum QDesignerMetaPropertyInterface::Kind

This enum indicates whether the property is of a special type.

ConstantValueDescription
QDesignerMetaPropertyInterface::EnumKind0The property is of an enumeration type
QDesignerMetaPropertyInterface::FlagKind1The property is of an flag type
QDesignerMetaPropertyInterface::OtherKind2The property is of another type

Member Function Documentation

QDesignerMetaPropertyInterface::QDesignerMetaPropertyInterface()

Constructs a QDesignerMetaPropertyInterface object.

[virtual noexcept] QDesignerMetaPropertyInterface::~QDesignerMetaPropertyInterface()

Destroys the QDesignerMetaPropertyInterface object.