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

Text rendering artifacts in QWebEngineView with custom high DPI rounding policy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.4.1
    • WebEngine
    • None
    • Windows

    Description

      This is an odd bug that got my attention in 6.4.1 but I am sure I noticed it on 6.4.0 as well (can't test it at the moment). It does not appear on 6.3.2. 

      If you set setHighDpiScaleFactorRoundingPolicy() to something like Qt::HighDpiScaleFactorRoundingPolicy::Round (for instance to avoid the known rendering artifacts with scaling factors like 125%), the text in a web view will look jagged or somehow in low quality.

      Selecting the text (which should cause a repaint) will not change things but moving (not even resizing, just moving) the window will make the text clear again.

      Problem only occurs on 6.4.x and with a custom high DPI rounding policy - other widgets, including QTextEdit, look fine.

      I could not find any existing issue mentioning this so I hope it's not a duplicate.

      The attached sample application simply contains a QWebEngineView and sets the rounding policy to reproduce the bug.

      Attachments

        1. qtdiag.txt
          13 kB
        2. text_632.gif
          text_632.gif
          352 kB
        3. text_641.gif
          text_641.gif
          363 kB
        4. webengine_text_rendering.zip
          1 kB

        Issue Links

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

          Activity

            People

              mnegyokru Martin Negyokru
              hippydream Fabrizio Angius
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes