[Interest] Creating pdf with QTextDocument with chart
Duane
duane.hebert at group-upc.com
Mon Oct 26 16:13:05 CET 2015
On 26/10/2015 11:04 AM, Michael Sué wrote:
> Hi,
>
> Maybe you can use QPrinter using a QPainter:
>
> QPrinter printer;
> printer.setOutputFileName("file.pdf");
> QPainter painter(&printer);
>
> //paint the widget of your text document
>
I was just looking at that. I think this would work but I'd have to
manually do the pagination that QTextDocument is already doing for me.
What would be the quickest solution would be to somehow paint the chart
and insert that into a document.
More information about the Interest
mailing list