CefView / QCefView

A Qt Widget encapsulated CEF view based on QWidget
https://cefview.github.io/QCefView/
GNU Lesser General Public License v2.1
521 stars 137 forks source link

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

Open LiYaLinIsLaoSix opened 11 months ago

LiYaLinIsLaoSix commented 11 months ago

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

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

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

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