Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.0
-
None
-
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