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

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.2
    • GUI: Printing
    • None
    • 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

        1. test.zip
          9.80 MB
          lei hua

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: