/**
* Writes a QVariant to a device. The data item is prefixed with the resulting blocksize,
* so the corresponding function readDataFromDevice() can check if enough data is available
/**
* Writes a QVariant to a device. The data item is prefixed with the resulting blocksize,
* so the corresponding function readDataFromDevice() can check if enough data is available