Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineView is very very very slow.

QWebEngineView is very very very slow.

Scheduled Pinned Locked Moved QtWebEngine
qwebengine
7 Posts 7 Posters 9.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nikitablack
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • McLionM Offline
      McLionM Offline
      McLion
      wrote on last edited by McLion
      #2

      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.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        janalleman
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • SamurayHS Offline
          SamurayHS Offline
          SamurayH
          wrote on last edited by
          #4

          Hi,
          After 3 years... Anyway switching from debug to release compiler solved the problem for me.

          "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

          A L V 3 Replies Last reply
          6
          • SamurayHS SamurayH

            Hi,
            After 3 years... Anyway switching from debug to release compiler solved the problem for me.

            A Offline
            A Offline
            a.r.a.m.p
            wrote on last edited by
            #5

            @SamurayH
            Thank you
            this advice solved my problem

            1 Reply Last reply
            0
            • SamurayHS SamurayH

              Hi,
              After 3 years... Anyway switching from debug to release compiler solved the problem for me.

              L Offline
              L Offline
              little_marron
              wrote on last edited by
              #6

              @SamurayH
              Thank you very much.
              Your advice solved my problem.

              1 Reply Last reply
              1
              • SamurayHS SamurayH

                Hi,
                After 3 years... Anyway switching from debug to release compiler solved the problem for me.

                V Offline
                V Offline
                Vijaykarthikeyan
                wrote on last edited by
                #7

                @SamurayH even in release mode,it is slow

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved