QWebFrame render too slow



  • I use QWebView to load webpages, and then render it to QImage, finally copy it to a D3D texture.

    The fps(frame per second) is very slow, especially for a webpage contains lots of images. After checking the execution time of each code block, I find that the render opreation cost nearly 0.1 second for a single webpage.

    [code]
    QWebView* view;
    QImage* image;
    /*
    some initialization.
    load url.
    */
    QPainter p(image);
    view->page()->mainFrame()->render(&p);
    [/code]

    Is there anyway to speed up the render operation?


Log in to reply
 

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