Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

QCefViewBrowserHandler::CloseAllBrowsers 阻塞 #55

Closed
Jaredjin opened this issue Dec 20, 2019 · 3 comments
Closed

QCefViewBrowserHandler::CloseAllBrowsers 阻塞 #55

Jaredjin opened this issue Dec 20, 2019 · 3 comments

Comments

@Jaredjin
Copy link

有时候不能正常退出,阻塞在close_cv_.wait(lock);
直接在QDialog原生窗口上点关闭,出现情况比较少,但是通过this->reject()等一直都是阻塞状态。

@tangduoling
Copy link

还是会卡在那里。

@happysi
Copy link

happysi commented Nov 19, 2020

参考下cef3的标准释放流程:(切记cefview不能直接释放)
CefLifeSpanHandler类中
virtual bool DoClose(CefRefPtr browser) { return false; }
需要改下代码添加个函数来调用 pQCefViewHandler_->onClose();

@tishion
Copy link
Owner

tishion commented Dec 30, 2020

fixed in this commit: 6f5715e

@tishion tishion closed this as completed Dec 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants