Unsolved QSettings delete registry path
-
Hi,
I store settings of my Win app in registry:HKEY_CURRENT_USER\SOFTWARE\Company\Product\Key1 = something
HKEY_CURRENT_USER\SOFTWARE\Company\Product\Key2 = something
HKEY_CURRENT_USER\SOFTWARE\Company\Product\Key2 = somethingNow I want to delete these records completely from registry. Is it possible to delete whole path HKEY_CURRENT_USER\SOFTWARE\Company in Qt ?
-
@MartinD said in QSettings delete registry path:
Is it possible to delete whole path HKEY_CURRENT_USER\SOFTWARE\Company in Qt
I don't believe so.
Now I want to delete these records completely from registry.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724845(v=vs.85).aspx
-
@MartinD said in QSettings delete registry path:
Now I want to delete these records completely from registry. Is it possible to delete whole path HKEY_CURRENT_USER\SOFTWARE\Company in Qt ?
i can't tell for sure that it works, but why not simply try it?
QSettings("HKEY_CURRENT_USER\\SOFTWARE\\Company", QSettings::NativeFormat).remove(".");