Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set QTextDocument to a size of A4?
Forum Updated to NodeBB v4.3 + New Features

Set QTextDocument to a size of A4?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chimaira1988
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chimaira1988
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved