Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebFrame render too slow
Qt 6.11 is out! See what's new in the release blog

QWebFrame render too slow

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 698 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.
  • Z Offline
    Z Offline
    zlxwd
    wrote on last edited by
    #1

    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?

    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