QWebEngineView is very very very slow.



  • Greetings,

    Following the advises from documentation I start to use QWebEngineView in my application. But the problem is that it's very slow. For example, loading Google main page takes up to 30 seconds. The code is very simple:

    view.load(QUrl{"http://google.com"});

    Another problem is that I can't clear the view. If I call `load()' I still see the old page until the loads (and in my case it takes very long time). I tried to set custom html before loading:

    view.setHtml("<p>hello</p>"); view.load(p.second);

    but it's ignored, I still see previous page.



  • QWebView::load is specified to have this behavior. You get the QWebView::loadFinished() signal once it is done which gives you possibilty to display a progress bar or alike until you get this signal and are able to show the new view/page. You can even use QWebView::loadProgress() to scale the progress from 0 to 100.

    Try to use setUrl() instead and see if this is what you are looking for.



  • Try disabling not-connected network devices, as suggested here: https://bugreports.qt.io/browse/QTBUG-44763t
    Worked for me when running the FancyBrowser example code


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.