[PyQt] QTextEdit: getting text with wordwrap newlines

Bob Kopinsky rkopinsky at gmail.com
Fri Apr 25 21:19:17 BST 2014

I have a QTextEdit which has word wrap enabled.  I would like to get the
text data but have the newlines from the word wrap as well.  I basically
need the text exactly as it appears to the user, rather than the one long
string from toPlainText().  Is there a way to do this?  Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140425/486630ea/attachment.html>

More information about the PyQt mailing list