Get and set values in windows registry
-
Hello!!
I am trying to modify the windows registry. I want to set a couple of things of a video codec.
[HKEY_CURRENT_USER\Software\GNU\x264vfw64] "preset"="medium" "tuning"=""
This is part of a .reg file that I have to set the codec properties. I want to modify this properties in my application. How can I read and modify the "preset" and "tuning" values?
Thank you very much!
-
Hello!!
I am trying to modify the windows registry. I want to set a couple of things of a video codec.
[HKEY_CURRENT_USER\Software\GNU\x264vfw64] "preset"="medium" "tuning"=""
This is part of a .reg file that I have to set the codec properties. I want to modify this properties in my application. How can I read and modify the "preset" and "tuning" values?
Thank you very much!
-
@raven-worx Yes, I am looking for examples of this, but I don't know how to use it :(
-
@raven-worx Yes, I am looking for examples of this, but I don't know how to use it :(
@ivanicy
if even the linked example isn't enough i am wondering what you are after... -
@ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!
QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64", QSettings::NativeFormat); settings.setValue("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64\\preset", "medium");
-
@ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!
QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64", QSettings::NativeFormat); settings.setValue("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64\\preset", "medium");
@Pablo-J.-Rogina said in Get and set values in windows registry:
@ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!
If I get the example linked by @raven-worx correctly, it should rather be:
QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64", QSettings::NativeFormat); settings.setValue("preset", "medium");
Disclaimer: not compiled, not tested, not even a Windows in sight ;)
-
@Pablo-J.-Rogina said in Get and set values in windows registry:
@ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!
If I get the example linked by @raven-worx correctly, it should rather be:
QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64", QSettings::NativeFormat); settings.setValue("preset", "medium");
Disclaimer: not compiled, not tested, not even a Windows in sight ;)
@aha_1980 said in Get and set values in windows registry:
If I get the example linked by @raven-worx correctly, it should rather be:
correct.