Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt WebKit API is slow, true?
Forum Updated to NodeBB v4.3 + New Features

Qt WebKit API is slow, true?

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 3.0k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    useryy
    wrote on 19 Dec 2011, 08:43 last edited by
    #1

    Using this code to load a webpage
    @ iWebFrame->load(QUrl("http://www.ifanr.com/64307"));
    qDebug()<<QTime::currentTime().toString();
    connect(iWebFrame, SIGNAL(loadFinished(bool)), SLOT(process_LoadFinished(bool)));
    @

    It takes 5+ minutes to get response in the slot function.

    Even if I set the url to a local html, it still takes 3 minutes.

    Not sure it's my reason or not.

    =================================================
    Full code is here: "ClickMe":https://skydrive.live.com/?cid=6466FE33F5454308&id=6466FE33F5454308!213

    Loading "www.google.com" takes 21 seconds - This proves that the enviroment is correct.
    Another page is from engadget.com, which takes 16 minutes. The page and its log is also attached.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on 19 Dec 2011, 08:50 last edited by
      #2

      The fact that you use qDebug for your timings, suggests that you are trying to profile using a Debug build. That is a bad idea. It doesn't tell you anything about real-world performance.

      However, your load times are extremely slow. 3 minutes is for a local HTML page is rediculous. Obviously, Qt Webkit normally isn't that slow. That is just plain unworkable. AFAIK, it is used in Qt Creator & Assistent as well to show the help pages, and I for one have no complaints about performance there.

      1 Reply Last reply
      0
      • U Offline
        U Offline
        useryy
        wrote on 19 Dec 2011, 08:54 last edited by
        #3

        Thanks for the debug suggestion.

        I load a local html is fast if the html is like

        <html>
        <body>
        <h1>My First Heading</h1>

        <p>My first paragraph.</p>
        </body>
        </html>

        Except the complexity of HTML file, no other clue is found.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on 19 Dec 2011, 11:21 last edited by
          #4

          My Qt debug build opens google in under one second...

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0

          1/4

          19 Dec 2011, 08:43

          • Login

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