Important: Please read the Qt Code of Conduct -

Set QTextDocument to a size of A4?

  • Hey,

    is there a way to show text with a fixed size (A4) via QTextDocument or have I to use the aspect ratio of width and height instead?
    I want to create a program, where you enter some data to a form and get a more-page-structured (the HTML-way doesn't work here) document immediately (the amount of pages depends on the input in the form). This document should be editable (that's the reason I want to use QTextDocument for it) and later be saved as a PDF by QPrinter (no problem here).

    thanks in advance

  • Is there a way to get the things done or is there a more smart way of doing this?

Log in to reply