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

QWebEngineView::print() can produce pixellated results on QPrintPreviewDialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.14, 6.2.8, 6.5.1, 6.8.0
    • GUI: Printing, WebEngine
    • Windows 10 22H2, 125% screen scaling

    Description

      Steps to reproduce

      1. Build and run the WebEngine Widgets PrintMe Example: https://doc.qt.io/qt-6/qtwebengine-webenginewidgets-printme-example.html
      2. Activate the Print Preview by pressing Ctrl+P, then set the zoom level to 100%
      3. Click the "Print" button on the top-right corner of QPrintPreviewDialog, and do an actual print (e.g. "Microsoft Print to PDF")
      4. Repeat Step #2

       

      Outcomes

      • (Qt 6) We get a bad image at Step #2 but a good image at Step #4
      • (Qt 5) We get a bad image at both Steps #2 and #4

      Outcomes updated July 7, 2025

      • Attached new outcomes as the old ones in the original issue do not show the severe nature of the blurriness.
      • Attached: "printmetest.pdf" is generated using the Qt printme example (Bad case)
      • Attached: "Superbill View.pdf" is generated using raw Chromium (not the Qt version) do show that pure Chromium does not have the issue.

       

       

      Bad:

      Good:

      Attachments

        1. printmetest.pdf
          156 kB
        2. print-preview-fuzzy.png
          print-preview-fuzzy.png
          45 kB
        3. print-preview-good.png
          print-preview-good.png
          58 kB
        4. Superbill View.pdf
          81 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes