Well no idea. As this is highly platform dependent anyway, why don't you use winapi directly?
#ifdef Q_OS_WIN
#include "windows.h"
#endif
bool existsAndSuccess = false;
#ifdef Q_OS_WIN
HKEY hKey;
existsAndSuccess = (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\VideoLan\\VLC", 0, KEY_READ, &hKey) == ERROR_SUCCESS);
#endif
qDebug() << existsAndSuccess;
#ifdef Q_OS_WIN
#include "windows.h"
#endif
bool existsAndSuccess = false;
#ifdef Q_OS_WIN
HKEY hKey;
existsAndSuccess = (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\VideoLan\\VLC", 0, KEY_READ, &hKey) == ERROR_SUCCESS);
#endif
qDebug() << existsAndSuccess;
To copy to clipboard, switch view to plain text mode
Maybe somebody else knows how to do this with QSettings properly?
Joh
Bookmarks