I tried
QSettings mSettings;
mSettings.setValue("HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/USBTOR/Start", 4);
This didn't work.
Initialize QSettings
with registry path (Make sure to use backslash for registry path)
QSettings settings("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBTOR", QSettings::NativeFormat);
Set Value
settings.setValue("Start", 4);