[Qt-interest] printing an off-screen QWebPage

Paul Miller paul at fxtech.com
Thu May 7 17:45:03 CEST 2009


I want to use a QWebPage to "render" some data with formatting to the 
printer with print preview capability. I don't necessarily want to 
display this page in my UI - I just want to print it. Basically I want 
to use HTML/CSS + web standards for my special formatting when printing.

I'm trying to build a QWebPage with some HTML data and then I connect it 
up to a QPrintPreviewDialog, but the print preview shows 0 pages 
available and the preview is blank.

What are the steps to construct a QWebPage *without a view* that can be 
printed and previewed?

-- 
Paul Miller | paul at fxtech.com | www.fxtech.com | Got Tivo?




More information about the Qt-interest-old mailing list