I've added the following code to demo browser from Qt 4.4. Using WebKit from SVN, Flash-10 from Adobe, KUbuntu Hardy 8.04.1: void BrowserMainWindow::slotThumbnail() { QSize size(256,256); QSize thumbnailClipSize(1000, 720); QRegion thumbnailClipRegion(0, 0, 1000, 720); WebView *webView = currentTab(); QWebPage *page = webView->page(); QWebFrame *mainFrame = page->mainFrame(); QSize pageSize = page->viewportSize(); QPainter painter; QPixmap thumbnail(thumbnailClipSize); painter.begin(&thumbnail); page->setViewportSize(thumbnailClipSize); // Flash-10 object jumps here... mainFrame->render(&painter, thumbnailClipRegion); painter.end(); page->setViewportSize(pageSize); thumbnail.scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation).save("thumb.png"); } This code just saves a thumbnail of current tab. If setViewportSize() is called, a flash-9 video object (YouTube video for example) during rendering jumps to the left side of webpage and then jumps back. Without setViewportSize() rendering works fine.
"flash-9" read as "flash-10", of course.
Qt framework for Webkit is not supported and even NPAPI Flash plugin support is gone. I think this can be marked as "RESOLVED WONTFIX". Thanks!