Code Monkey home page Code Monkey logo

Comments (4)

happysi avatar happysi commented on July 20, 2024 1

移除LoadString这个方法就行了
//pQCefViewHandler_->GetBrowser()->GetMainFrame()->LoadString(strContent, strUrl);
pQCefViewHandler_->GetBrowser()->GetMainFrame()->LoadURL(strUrl);

from qcefview.

liudanx avatar liudanx commented on July 20, 2024

多谢,我这边将cef替换为 cef_binary_76.1.13+gf19c584+chromium-76.0.3809.132_windows64_minimal 了,但是遇到了一个更棘手的问题,我在关闭客户端的时候,进程会卡主5分钟左右,调试的时候发现它是卡在了
`void
QCefViewBrowserHandler::CloseAllBrowsers(bool force_close)
{
// If all browsers had been closed, then return
std::unique_lockstd::mutex lock(mtx_);
if (!browser_count_) {
return;
}

// Flip the closing flag
is_closing_ = true;

// Close all popup browsers if any
if (!popup_browser_list_.empty()) {
for (auto it = popup_browser_list_.begin(); it != popup_browser_list_.end(); ++it)
(*it)->GetHost()->CloseBrowser(force_close);
}

if (main_browser_)
// Request that the main browser close.
main_browser_->GetHost()->CloseBrowser(force_close);

// Wait for the browser to be closed
close_cv_.wait(lock);
}`
wait的位置,有什么想法可以分享吗

from qcefview.

tishion avatar tishion commented on July 20, 2024

我下载的cef版本是cef_binary_86.0.21+g6a2c8e7+chromium-86.0.4240.183_windows64,其中CefFrame中没有LoadString这个函数,导致QCefView编译失败,请问这个函数应该用什么替代呢?

按照 @happysi 的修改方式修改就行了。

多谢,我这边将cef替换为 cef_binary_76.1.13+gf19c584+chromium-76.0.3809.132_windows64_minimal 了,但是遇到了一个更棘手的问题,我在关闭客户端的时候,进程会卡主5分钟左右,调试的时候发现它是卡在了
`void
QCefViewBrowserHandler::CloseAllBrowsers(bool force_close)
{
// If all browsers had been closed, then return
std::unique_lockstd::mutex lock(mtx_);
if (!browser_count_) {
return;
}

// Flip the closing flag
is_closing_ = true;

// Close all popup browsers if any
if (!popup_browser_list_.empty()) {
for (auto it = popup_browser_list_.begin(); it != popup_browser_list_.end(); ++it)
(*it)->GetHost()->CloseBrowser(force_close);
}

if (main_browser_)
// Request that the main browser close.
main_browser_->GetHost()->CloseBrowser(force_close);

// Wait for the browser to be closed
close_cv_.wait(lock);
}`
wait的位置,有什么想法可以分享吗

这个bug一直没有修复,十分抱歉。
后续会推出macOS/Windows跨平台版本,已经解决了这个问题。

from qcefview.

tishion avatar tishion commented on July 20, 2024

Fixed

from qcefview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.