Variant(QByteArray,QByteArray)

Construct a Variant containing an arbitrary type of value and encoding.

Synopsis:

#include <qpps/variant.h>
 
Variant( const QByteArray &value, 
         const QByteArray &encoding );

Arguments:

value
A QByteArray containing the raw value to store.
encoding
A QByteArray containing the encoding to use.

Description:

Construct a Variant containing an arbitrary type of value and encoding. You must first encode the value in the value QByteArray before passing it in along with the desired encoding (type).

Note: The value and encoding must not contain null or \n byte values and encoding must not contain a colon (:).