How to use both the properties of Qtextdocument
Unsolved
General and Desktop
-
@ManiRon
Not viaQTextDocument
. You'd have to look at manipulating the PDF output, which is a different matter.Something like https://forum.qt.io/topic/74643/qtextdocument-to-pdf-with-watermarks-and-header-footer-filesize-too-large might give you some ideas. I do not guarantee whether that is good/the right approach, but it might be.
-
@ManiRon
If you don't want to do this via thepaint()
suggested in the link I posted above, you could try with eitherQTextCursor::insertImage()
or you could try writing the whole thing in HTML and seeing ifQTextCursor::insertHtml()
accepts it or not, I don't know. -