Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48182

QTextDocument FindBackward doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6
    • 5.5.0
    • GUI: Text handling
    • None
    • e52fcb7dc78c83586c813f55f087a98bae4eaa0e

      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 );

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sgaist Samuel Gaist
            witekt Witek Tyszkowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes