toString()

Convert the attribute value to a QString.

Synopsis:

#include <qpps/variant.h>
 
QString toString() const;

Description:

Convert the attribute value to a QString. This function is similar to value(), except that it checks if the encoding is either empty or s (string).

Returns:

A QString containing the attribute's value.