I found that a method that does this was introduced in QTextEdit with Ot 4.1. For your information. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100512/4056cb6b/attachment.html