css must load separate:

http://wiki.qtcentre.org/index.php?t...images_and_CSS
doc->addResource( QTextDocument::StyleSheetResource, QUrl( "format.css" ), css );

or write inline style xslt template

Open pdf http://fop-miniscribus.googlecode.co...ktestwrite.pdf this is writteln by XSL-FO + qt miniscribus 2 beta

http://code.google.com/p/fop-miniscribus/
why beta? i wait 4.5 stable release and stable OpenDocument reader/writer

Reference + sample:
http://www.zvon.org/xxl/xslfoReferen...put/index.html