Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.3.2, 5.4.0 Alpha
-
Windows
Description
When wordwrap is enabled and text contains non-breaking space, text is getting splitted into multiple lines, which obviously shouldn't happen.
#include <QApplication> #include <QLabel> #include <QTextEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QLabel label; label.setWordWrap(true); QFont font; font.setPixelSize(20); label.setFont(font); label.setTextFormat(Qt::RichText); label.setText("Non breaking space. Non breaking space. Non breaking space."); label.show(); return a.exec(); }
This does not happen in Qt4.8.
Attachments
Issue Links
- replaces
-
QTBUG-31449 QChar::Nbsp results in a word wrap
-
- Closed
-