The problem is that you are trying to influence the text editor, whereas you are printing the document which is displayed by the editor. Word wrapping is only relevant for rendering the document to the text edit, it won't influence the way the document is printed on the printer. I think you should operate on the QPrinter object directly or on the QTextDocument object which represents the document itself.