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

QPrintPreviewDialog shows empty page when printing QTextDocument and clipping was used

    XMLWordPrintable

    Details

      Description

      I ran across this bug when I printed many small text documents.
      After a call to QPrinter::newPage() none of the text documents are shown in the print preview, if you used clipping earlier. However, they are printed correctly.
      I attach a small sample program to demonstrate the issue and also two screen shots.

        Attachments

        1. main.cpp
          2 kB
        2. main.h
          0.3 kB
        3. qppd_bad.png
          qppd_bad.png
          28 kB
        4. qppd_good.png
          qppd_good.png
          29 kB
        5. qprintpreviewdialog_bugreport.pro
          0.0 kB

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bgre Benjamin Gretsch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes