Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.5.0
-
Fix Version/s: 5.6
-
Component/s: GUI: Text handling
-
Labels:None
-
Commits:e52fcb7dc78c83586c813f55f087a98bae4eaa0e
Description
Searching that way does not work in qt 5.5 (it was working in Qt 4.8.6):
QString text = "test";
QString pattern = "test";
QTextDocument document;
document.setPlainText( text );
QTextCursor cursor( &document );
cursor.setPosition( text.size(), QTextCursor::MoveAnchor );
cursor = document.find( pattern, cursor, QTextDocument::FindBackward );
Attachments
Issue Links
- is duplicated by
-
QTBUG-57598 QTextDocument::find() with QTextDocument::FindBackward does not work when string is appended at the beginning of the document
-
- Closed
-