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
    • 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

       

      Bad:

      Good:

      Attachments

        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:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes