QCefView icon indicating copy to clipboard operation
QCefView copied to clipboard

Compile error

Open jianxinwen opened this issue 4 years ago • 3 comments

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

jianxinwen avatar Jan 10 '21 15:01 jianxinwen

what's the cef version you are referring?

tishion avatar Jan 11 '21 04:01 tishion

for cef87, you can follow this:

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

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

chaome avatar Jan 11 '21 04:01 chaome

for cef87, you can follow this:

  1. Move this line to method QCefViewRenderApp::OnWebKitInitialized(), CreateRenderDelegates(render_delegates_, bridge_object_name_); 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.

jianxinwen avatar Jan 11 '21 07:01 jianxinwen