Return the value of an attribute or a default value if no such attribute is known.
#include <qpps/object.h> Variant attribute( const QString &name, const Variant &defaultValue = Variant() ) const;
Return the value of an attribute or a default value if no such attribute is known.
Returns a Variant containing the attribute's value, when the attribute was found. Otherwise, the Variant contains the specified default value or is empty (if no default value was specified).