Skip to content

Instantly share code, notes, and snippets.

@ayoy
Created February 9, 2009 14:08
Show Gist options
  • Save ayoy/60798 to your computer and use it in GitHub Desktop.
Save ayoy/60798 to your computer and use it in GitHub Desktop.
QSettings settings( "HKEY_CLASSES_ROOT\\http\\shell\\open\\command", QSettings::NativeFormat );
QProcess *browser = new QProcess;
browser->start( settings.value( "Default" ).toString() + " " + address );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment