Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.4
-
None
Description
This issue is mostly annoying because even if you do Ctrl+A you can't delete everything in one press. But it also means that you can't change font size etc on the first point at all, making you have to add another line above first.
I've been looking at this issue a bit in the code and it seems like the internals of QTextDocument has a special case for when the cursor position is -1: https://github.com/qt/qtbase/blob/dev/src/gui/text/qtextdocument_p.cpp#L674
But all the way through QTextCursor there's checks and asserts to make sure pos is never -1. I assume it can happen when setBlockCharFormat is run on the first block but it should also happen for select all, select line, and in QWidgetTextControl::mouseMoveEvent when selecting above top left.
Same bug (I assume), and repro: QDS-8192
Attachments
Issue Links
- relates to
-
QTBUG-113866 [Text Editor] Text is reformatted instead of being deleted
- Reported
-
QTBUG-56984 Problem with text selection in Qml TextArea
- Reported
-
QTBUG-81099 Font properties should not affect bullets
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-120354 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
530511,1 | QTextDocument: Better way to render and hit test list items | dev | qt/qtbase | Status: NEW | 0 | 0 |