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

TextEdit does not handle highlighting of QSyntaxHighlighter correctly

    XMLWordPrintable

Details

    Description

      In the Qt QWidgets Syntax Highlighting example the highlighting works as expected when removing the comment symbol for a multi-line comment.
      With the Qt Quick TextEdit, the highlighting is not updated correctly. After a "select all text" (CTRL-A), the highlighting is updated as expected.

      The attached example shows the problem.

      Attachments

        1. untitled.pro
          1 kB
        2. qml.qrc
          0.1 kB
        3. main.qml
          0.8 kB
        4. main.cpp
          0.6 kB
        5. highlighter.h
          3 kB
        6. highlighter.cpp
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luismdevries L.M. de Vries
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes