Hi, I want to read in the windows registry the value of the key "\Device\Serial0" located in:
HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\SERIALCOM M
The problem is QSetting seems to convert all my "\" to "/".
So when I do:
QSettings settings("HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\ \SERIALCOMM", QSettings::NativeFormat);
then
QString result = settings.value("\\Device\\Serial0").toString();
it actually looks for a value located in:
HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\SERIALCOM M\\Device\\Serial0
Of course there is no value in this location since "\\Device\\Serial0" is not a path but the name of the key.
Typically, the value of the key called "\\Device\\Serial0" is COM1
How can I read this value ?
Thank you
Bookmarks