[webkit-qt] Using "screen" stylesheet in QWebFrame::print()

Chris Yuen kizzx2 at gmail.com
Sun Jun 6 18:41:05 PDT 2010


Hello,

I am using QWebFrame::print() to produce a PDF document. However, it
seems to automatically choose to use the "print" stylesheets and
discards any "screen" stylesheets during the process. Is there a way
to nicely ask it to use the screen stylesheets as in
QWebFrame::render()?

Of course, I could always scrape the HTML to replace all print
stylesheets to screen stylesheets. I am just looking for a cleaner way
to do it.

Thanks!

Chris Yuen


More information about the webkit-qt mailing list