Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.4.2
-
None
Description
Setting QTextOption::WrapAtWordBoundaryOrAnywhere for the wordWrapMode and QTextEdit::FixedColumnWidth for the lineWrapMode does not work correctly. The text will wrap anywhere even if there is a space in the line. Consider the following example:
#include <QtGui>
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0)
: QWidget(parent)
public slots:
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
Widget w;
w.show();
return a.exec();
}
With the input "foobar1 foobar2", the line should break after foobar1. It instead breaks at fo-obar2.