PDA

View Full Version : QSettings on 64bit Machine



parisiasl
14th December 2010, 09:56
Hi,
I've a problem with QSettings, ( QT32bit on a 64bitOS ) doesn't see the group HKEY_LOCAL_MACHINE\SOFTWARE !!

If I Create a :
QSettings *s = new QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE", QSettings::NativeFormat);

It believe to watch the HKEY_LOCAL_MACHINE\\SOFTWARE but instead is in HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node !!

I've a 64bit Application (MATLAB) and it writes the settings in the key :
HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7 .10

This Key for QT is Inaccesible because it goes directly to the subnode HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node.

What can I do for read that key ?

Thank you,
Salvo

FelixB
14th December 2010, 10:12
I don't have a solution, but a small explanation: if a 32-bit-software accesses the registry of a 64-bit system, it will be automatically redirected to Wow6432Node.