enno
19th February 2010, 20:00
I am trying to produce a print version of a QTextDocument, prDoc, by adding some headers and footers around fragments of a QTextDocument, doc, displaying properly.
Even when the QTextCursor used to define the selection has anchor position 0 the QTextFragment, when inserted in prDoc, does not have the tabs defined in the QBlockFormat of that first block in doc.
Any suggestions what I could be doing wrong?
Second, but less pressing, question. Is there a way to stop Qt printing pagenumbers when printing a document. The page number, together with more info is already in my footer.
Thanks,
Enno
Even when the QTextCursor used to define the selection has anchor position 0 the QTextFragment, when inserted in prDoc, does not have the tabs defined in the QBlockFormat of that first block in doc.
Any suggestions what I could be doing wrong?
Second, but less pressing, question. Is there a way to stop Qt printing pagenumbers when printing a document. The page number, together with more info is already in my footer.
Thanks,
Enno