Results 1 to 2 of 2

Thread: Qt WebKit API is slow, true?

  1. #1

    Default Qt WebKit API is slow, true?

    Using this code to load a webpage
    Qt Code:
    1. iWebFrame->load(QUrl("http://www.ifanr.com/64307"));
    2. qDebug()<<QTime::currentTime().toString();
    3. connect(iWebFrame, SIGNAL(loadFinished(bool)), SLOT(process_LoadFinished(bool)));
    To copy to clipboard, switch view to plain text mode 
    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

    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.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt WebKit API is slow, true?

    It depends on the site and its servers.

    Your example on my box returns:

    Qt Code:
    1. MainWindow::entrance()
    2. Get main frame
    3. Connect
    4. Begin loading
    5. End loading. Time: "09:33:35"
    6. baseUrl is: "about:blank"
    7. MainWindow::process_LoadFinished(). Time: "09:33:36"
    8. Ok
    9. baseUrl is: "http://www.google.co.uk/"
    To copy to clipboard, switch view to plain text mode 

    and
    Qt Code:
    1. MainWindow::entrance()
    2. Get main frame
    3. Connect
    4. Begin loading
    5. End loading. Time: "09:34:34"
    6. baseUrl is: "about:blank"
    7. QSslSocket: cannot call unresolved function SSLv3_client_method
    8. QSslSocket: cannot call unresolved function SSL_CTX_new
    9. QSslSocket: cannot call unresolved function SSL_library_init
    10. QSslSocket: cannot call unresolved function ERR_get_error
    11. QSslSocket: cannot call unresolved function ERR_error_string
    12. QFont::setPixelSize: Pixel size <= 0 (0)
    13. QSslSocket: cannot call unresolved function SSLv3_client_method
    14. QSslSocket: cannot call unresolved function SSL_CTX_new
    15. QSslSocket: cannot call unresolved function SSL_library_init
    16. QSslSocket: cannot call unresolved function ERR_get_error
    17. QSslSocket: cannot call unresolved function ERR_error_string
    18. MainWindow::process_LoadFinished(). Time: "09:34:46"
    19. Ok
    20. baseUrl is: "http://www.ifanr.com/64307"
    To copy to clipboard, switch view to plain text mode 

    google takes blow a second to load, the ifanr link takes a bit longer but still not as long as in your case.

Similar Threads

  1. How to use a true type font?
    By jins in forum Newbie
    Replies: 2
    Last Post: 3rd December 2010, 10:23
  2. true representation in binary or hex
    By Tadas in forum Newbie
    Replies: 12
    Last Post: 10th October 2010, 19:02
  3. Qt true,false speed
    By mero in forum Qt Programming
    Replies: 3
    Last Post: 9th October 2010, 20:09
  4. Replies: 4
    Last Post: 23rd September 2010, 15:20
  5. QTabWidget and .setTabsClosable(True)
    By prof.ebral in forum Newbie
    Replies: 3
    Last Post: 26th February 2010, 04:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.