QCefView icon indicating copy to clipboard operation
QCefView copied to clipboard

[FEATURE] SetPreference 怎么设置网络代理?

Open LiYaLinIsLaoSix opened this issue 2 years ago • 2 comments
trafficstars

** Feature Description 【特性详细描述】** 在项目中我需要设置网页代理,但是没有看到示例和网上信息,只看到一些关于cef设置方法。

我在网上看到 CefRefPtr<CefDictionaryValue> dict = CefDictionaryValue::Create(); dict->SetString("mode", "fixed_servers"); dict->SetString("server", "192.168.1.100:8000");

CefRefPtr<CefValue> value = CefValue::Create(); value->SetDictionary(dict); context->SetPreference("proxy", value, error);

我需要怎么通过QCefView 里的方法设置网页代理?

LiYaLinIsLaoSix avatar Sep 27 '23 03:09 LiYaLinIsLaoSix