本帖最后由 Qter 于 2022-3-10 15:16 编辑  
 
https://www.linuxdashen.com/%E5% ... E%E4%BB%A3%E7%90%86- QCefViewBrowserApp::OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line)
 
  复制代码 command_line->AppendSwitchWithValue("--default-background-color", "ff000000");//使用背景颜色 
  command_line->AppendSwitchWithValue("--background-color", "black");//使用背景颜色 
  command_line->AppendSwitch("--off-screen-rendering-enabled"); 
  command_line->AppendSwitch("--transparent-painting-enabled"); 
 
 
command_line->AppendSwitchWithValue("proxy-server", "socks5://127.0.0.1:8888"); 
 
 
https://cpp.hotexamples.com/exam ... ethod-examples.html 
 
 
    CefCommandLine::SwitchMap switches; command_line->GetSwitches(switches);  
 
"You should use AppendSwitchWithValue("proxy-server", "socks5://127.0.0.1:8888")"  
 
 |