Unsolved QSettings HKEY_LOCAL_MACHINE
-
Hi,
I would like to access to a key in
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node in 64bits
HKEY_LOCAL_MACHINE\SOFTWARE in 32bitsI have to set the entire path in QSettings or use an enum ?
thanks.
(sorry for my english) -
@Roy44
IIRC this should be handled by QSettings automatically:QSettings settings("HKEY_LOCAL_MACHINE\\Software\\Node", QSettings::NativeFormat); // will be mapped automatically to "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Node" in 64bit
-
@raven-worx said in QSettings HKEY_LOCAL_MACHINE:
QSettings settings("HKEY_LOCAL_MACHINE\Software\Node", QSettings::NativeFormat);
The directory I try to access is :
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MediaSofts\JardiCadI try
QSettings test("HKEY_LOCAL_MACHINE\SOFTWARE\MediaSofts\JardiCad",QSettings::NativeFormat);
QStringList qlkeys = test.allKeys();but it does not work, qlkeys is empty.
-
@Roy44
escape the backslashes ... like i showed. -
sorry I double the backslash but it does not eappear in my message.
-
QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\MediaSofts\\JardiCad", QSettings::NativeFormat)
does not work.
I'm on Qt 5.9.1 -
Ok It works only if I compile in 32bits
-
@Roy44 said in QSettings HKEY_LOCAL_MACHINE:
Ok It works only if I compile in 32bits
and what were you doing before?