Solved Create windows registry SubKey using QSettings
-
Trying to figure out how to add a subkey to registry path but can't find any method in QSettings?
Example Path: "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
I want to add a subkey/path "Acme", so the full path becomes:
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Acme"
and then in this path I can add string values using SetValue (this part is straightforward)
-
@Christian-Ehrlicher said in Create windows registry SubKey using QSettings:
I would try with QSettings::beginGroup()
It works, however, only if there is a setValue call between beginGroup and endGroup.
@JonB Tried your suggestion, it didn't work (silent failure). Also tried calling setValue with subkey name empty Variant or String, that didn't create a subkey either.
-
I would try with QSettings::beginGroup()
-
@Taytoo
I was going to say have you just triedQSettings::setValue("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Acme\something")
? But certianly try @Christian-Ehrlicher's. -
@Christian-Ehrlicher said in Create windows registry SubKey using QSettings:
I would try with QSettings::beginGroup()
It works, however, only if there is a setValue call between beginGroup and endGroup.
@JonB Tried your suggestion, it didn't work (silent failure). Also tried calling setValue with subkey name empty Variant or String, that didn't create a subkey either.