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

QTextDocument FindBackward doesn't work

    XMLWordPrintable

    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

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

            Activity

              People

              Assignee:
              sgaist Samuel Gaist
              Reporter:
              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