Hi ,
i want to add value to windows registry binary value. I am using QSettings.setValue()
method. I want to add 0x20000000 value as a REG_BINARY type . I am using like this.

QSettings lReg("HKEY_CURRENT_USER\\Software\\...\\x");
QByteArray lArr=QByteArray::fromHex("0x20000000");
QVariant lVar=QVariant::fromValue(lArr);
lReg.setValue("test",lVar");

but after executing code like this. "test" value type is equal REG_BINARY but value is "@QByteArray(20..)". QSettings writes to registry my value and name QByteArray.

How can i avoid this? I only want to write my value .

Thanks in advance

Ramazan