Important: Please read the Qt Code of Conduct -

I need to place text in a QTextDocument in accurate coordinates

  • 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

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

Log in to reply