qt 操作注册表,设置ie代理

void SetIEProxy(QString proxy)

{
    QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", QSettings::NativeFormat);
    settings.setValue("ProxyServer", proxy);
    settings.setValue("ProxyEnable", 1);
}

猜你喜欢

转载自www.cnblogs.com/cute/p/10559724.html