setAttribute()

Set an attribute in the underlying PPS object.

Synopsis:

#include <qpps/object.h>
 
bool setAttribute( const QString &name, 
                   const QPps::Variant &value );

Arguments:

name
The attribute being set.
value
The attribute's new value.

Description:

Set an attribute in the underlying PPS object.

Note: The PPS service doesn't filter out no-op changes; if an attribute is set, all subscribers will be notified, even if the value didn't change.

Returns:

Returns true if the PPS object was updated successfully, false if an error occurred (call errorString() to get more information).