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

Loading a file larger than 5.242.880 bytes insert newline in QPlainTextEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.0.1
    • GUI: Text handling
    • None
    • Windows 8 64 bit
      Qt-creator 2.7.0 based on Qt 4.8.4
      Qt 5.0.1

    Description

      Below is a project I use to load a large file. But when the file exceeds 5,242,880 bytes, an extra new line is inserted. So character 5.242.881 is inserted on the next line.

      I’ve created a text file with 32767 lines of exactly 160 bytes (including 2 bytes for \r\n, thus 158 characters + \r\n).
      Line 32768 has exactly 80 characters. This file load fine.

      When I add 1 character to line 32768, this character will be displayed on a new line. Obviously not correct.

      Attachments

        1. LoadFile.pro
          0.4 kB
        2. main.cpp
          0.2 kB
        3. mainwindow.cpp
          1 kB
        4. mainwindow.h
          0.6 kB
        5. mainwindow.ui
          2 kB
        6. testfile.zip
          34 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            woomla Wo Om Laq
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes