Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Check if a value registry exists with QSettings
  2. QSettings settings("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths", QSettings::NativeFormat);
  3.  
  4. if (settings.childGroups().contains("aatest",Qt::CaseInsensitive)){
  5.     std::cout <<"yes" <<std::endl;
  6. }else{
  7.     std::cout <<"no" <<std::endl;
  8. }