PDA

View Full Version : A text widget that handles line wrapping of white spaces?



Thuan Seah Tan
2nd September 2011, 07:11
Hi everyone,

I am trying to add a new UI element to the software i am working on and I am looking for a decent text widget that handles line wrapping properly including white space and tabs. I started using QTextEdit but apparently there is a bug with it https://bugreports.qt.nokia.com/browse/QTBUG-2466. Wondering if anyone knows of an existing widget that does a better job at line wrapping?

Thuan

fullmetalcoder
20th October 2011, 00:17
The problem is actually in QTextLayout which means that pretty much all Qt-based editors will be affected, unless they roll their own layout code, thereby losing most unicode/bidi features (QScintilla is an example). A more accurate bug report (https://bugreports.qt.nokia.com/browse/QTBUG-22180) might lead to a fix but it could take some time...