[Interest] Creating pdf with QTextDocument with chart
Duane
duane.hebert at group-upc.com
Mon Oct 26 16:45:12 CET 2015
On 26/10/2015 11:31 AM, André Somers wrote:
> Op 26-10-2015 om 14:09 schreef Duane:
>> On 23/10/2015 7:40 PM, Sze Howe Koh wrote:
>>> On 24 October 2015 at 00:21, Duane <duane.hebert at group-upc.com> wrote:
>>>> I need to create a document as a pdf file for my application. I can
>>>> use
>>>> QTextDocument and html to do most of the document but I need to add a
>>>> chart to it.
>>>>
>>>> I'm using Qt 4.8. Any suggestions?
>>> Hi Duane,
>>>
>>> Try the Qt Widgets for Technical Applications library:
>>> http://qwt.sourceforge.net/
>>>
>>
>> Thanks for the reply. We're using QWT to do the charts. I can save a
>> chart to pdf. what I need is to make a report containing a chart among
>> other things and save that as a PDF file.
> Qwt has QwtRenderer which is designed for this kind of usecase. You
> would render the chart into an image, which you then embed in your
> report. That's basically how we do it (only not based on QTextDocument).
Hi André. I know about QwtRenderer. What do you use to create your
report if not QTextDocument?
More information about the Interest
mailing list