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

QSyntaxHighlighter hangs indefinitely on rehighlight function for large text files > 10mb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.7.4
    • GUI: Text handling
    • None
    • Sles10

    Description

      On older versions < 4 of Qt the rehighlight function works fine for large files. However on 4.7.4 on a large text file > 10mb, rehighlight hangs indefinitely. I tried version 4.5.3 and rehighlight is slow, but finishes in a couple seconds. To reproduce I added the slot:

      void MainWindow::refresh()
      {
      QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
      highlighter->rehighlight();
      QApplication::restoreOverrideCursor();
      }

      to the syntaxHighlighter example and created a menu option for it. Then I opened a large text file ~15mb and called refresh.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            thebandrews Ben Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes