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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.13.2
    • GUI: Printing
    • None
    • Linux/X11

      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.

       

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

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

              Created:
              Updated:

                There is 1 open Gerrit change