Results 1 to 3 of 3

Thread: QWebFrame evaluateJavaScript

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QWebFrame evaluateJavaScript

    Hi Qt gurus,

    I have a performance question.

    I'm trying to design a high speed "QWebFrame Html append function":

    Qt Code:
    1. QWebView::page()->mainFrame()->evaluateJavaScript(
    2. QString("document.getElementById('%1').innerHTML += '%2'").
    3. arg(QString::number((int) chunk)).
    4. arg(html));
    To copy to clipboard, switch view to plain text mode 

    After adding a few lines (1000x) it's getting very slow.

    What would be the proper routine for doing that ?

  2. #2
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebFrame evaluateJavaScript

    why do yoy think that it`s "hight speed" method?

    If we have 1000x lines to add, may be add 20-30 ines on one page and genegate other page with 20-30 lines, and if user want to see otherpage he press PageDown key and so on.

    I donot see reson to add 1000x lines on one page. If reason take place in your project tell about it more.
    Last edited by kwisp; 2nd September 2009 at 06:45.
    east or west home is best

  3. #3
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: QWebFrame evaluateJavaScript

    Well I need to insert and append HTML using Javascript routines.

    And it has to be fast.

    Just like what Bespin does : http://vimeo.com/3195079

Similar Threads

  1. QWebFrame scroll down to the max.
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2009, 22:55
  2. Problem with evaluateJavaScript()
    By piotr.dobrogost in forum Qt Programming
    Replies: 0
    Last Post: 26th August 2009, 19:36
  3. Replies: 0
    Last Post: 30th November 2008, 16:59

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.