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

When the text is too large(>50MB),QPrintPreviewDialog can not preview the text.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: GUI: Printing
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      After i load a large text(>50MB) using QPlainTextEdit,i use  QPrintPreviewDialog to view the print preview,but the result is empty.

      When i use qt source debugging ,i find that in the QTextDocument::print() function,the pageCount() returns a negative value.i think this is abnormal.

      You can verify the above statement with the attached code.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              uniontech_hualei lei hua
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change