Unsolved How to read windows Registry Values in Qt?
-
i am able to read registry keys, but i am not getting how to read registry values
-
@Sanjeev-Gudisagar
did you already read the QSettings docs? -
@raven-worx Yes
-
can you show the code you have so far?
-
This post is deleted! -
@aha_1980
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSettings m("HKEY_LOCAL_MACHINE\SOFTWARE\Dell",
QSettings::Registry64Format);QString val = m.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Dell").toString(); qDebug()<<val<<endl; return a.exec();
}
-
can you show how this path looks in the regedit?
regarding your code:
- the path in the ctor should have double backslash
'\\'
or forward slash'/'
- value() does not get a path, but a single key name
- the path in the ctor should have double backslash