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

QTextDocument FindBackward doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6
    • 5.5.0
    • GUI: Text handling
    • 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

          For Gerrit Dashboard: QTBUG-48182
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes