tishion / QCefView

Moved to CefView/QCefView
https://cefview.github.io/QCefView/
GNU Lesser General Public License v3.0
314 stars 116 forks source link

Compile error #78

Open jianxinwen opened 3 years ago

jianxinwen commented 3 years ago

vs2019 gives below error 'QCefViewBrowserApp::OnRenderProcessThreadCreated': method with override specifier 'override' did not override any base class methods QCefView *\src\QCefView\CefViewBrowserApp\QCefViewBrowserApp.h 68

tishion commented 3 years ago

what's the cef version you are referring?

chaome commented 3 years ago

for cef87, you can follow this:

  1. Move this line to method QCefViewRenderApp::OnWebKitInitialized(), CreateRenderDelegates(renderdelegates, bridge_objectname); As we should do this in method OnWebKitInitialized() when use latest CEF.

  2. Remove all methods named: "OnRenderThreadCreated", "OnRenderProcessThreadCreated" and "OnRenderProcessThreadCreated"

jianxinwen commented 3 years ago

for cef87, you can follow this:

  1. Move this line to method QCefViewRenderApp::OnWebKitInitialized(), CreateRenderDelegates(renderdelegates, bridge_objectname); As we should do this in method OnWebKitInitialized() when use latest CEF.
  2. Remove all methods named: "OnRenderThreadCreated", "OnRenderProcessThreadCreated" and "OnRenderProcessThreadCreated"

I'm working with CEF87 and Qt6,modification above solves the problem. Thanks for your help.