Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
4.6.2
-
None
-
libqt4-x11-4.6.2-105.1.i586; openSuse 11.2
Description
I have a QTextEdit:
QTextEdit *e = new QTextEdit(0);
e->setWordWrapMode(QTextOption::WordWrap);
when I now just press and hold a letter to create a long line, I will get a horizontal scrollbar. Now when the scrollbar is visible and the cursor is at the rightmost position, I enter some Space characters. But what happens is:
- I do suddenly not see the cursor anymore
- the space characters are also not shown
- the scrollbar does not shrink (does not change at all).
It's like space chars are simply ignored somehow but not entirely.
The most problem here is the disappearing cursor. This not only happens when I enter the space chars, but also when I later on move the cursor
to the end of this long line by pressing the "End" key.
The spaces however are still kept somehow in the widget, because after pressing the "End" key and selecting the whole line via "Shift + Pos1", then copy, paste into another text editor shows me all spaces I entered.
This problem might be related to http://bugreports.qt.nokia.com/browse/QTBUG-4052
Testing the same with a Q3TextEdit shows, that this widget works correctly in that regard.
So this is a regression to Qt3
Attachments
Issue Links
- is replaced by
-
QTBUG-21668 Cursor position goes outside of viewport when text line has trailing spaces
-
- Closed
-