Tuesday, 15 March 2011

c++ - How to add/change registry in qt? -



c++ - How to add/change registry in qt? -

i tried

qsettings msettings; msettings.setvalue("hkey_local_machine/system/currentcontrolset/services/usbtor/start", 4);

this didn't work.

initialize qsettings registry path (make sure utilize backslash registry path)

qsettings settings("hkey_local_machine\\system\\currentcontrolset\\services\\usbtor", setting::nativeformat);

set value

settings.setvalue("start", 4);

c++ qt registry qsettings

No comments:

Post a Comment