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. I need to place text in a QTextDocument in accurate coordinates

I need to place text in a QTextDocument in accurate coordinates

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • D Offline
    D Offline
    David_Gil
    wrote on last edited by
    #1

    Hi!

    I want to print some text (an address) on an envelope (a QTextDocument). The problem is that text can't be placed giving coordinates, but inserting blocks and setting up frame margins, all of which make it very inaccurate to place the address.

    Is there a way to place text in accurate coordinates in the QTextDocument?

    Thank you very much!

    David Gil

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Maybe the best way will be to use HTML with CSS markup? You can simply create and compose data in it.

      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