I've tried it yesterday when I found it, but, it don't capture the Flash content in the WebView.
Qt Code:
  1. void Standalone::screenShot_VirtualScreen()
  2. {
  3. QImage img(ui->webView->page()->mainFrame()->contentsSize(), QImage::Format_ARGB32_Premultiplied);
  4. img.fill(Qt::transparent);
  5.  
  6. QPainter painter(&img);
  7. painter.setRenderHint(QPainter::Antialiasing, true);
  8. painter.setRenderHint(QPainter::TextAntialiasing, true);
  9. painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
  10. ui->webView->render(&painter);
  11. painter.end();
  12.  
  13. img.save(screenShotPath(), "PNG");
  14. }
To copy to clipboard, switch view to plain text mode 

It's only give me a "empty" (background-color) image, and not the content.