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

WebEngineView renders with artifacts when using decimal numbers for margin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.3, 6.9.0
    • WebEngine
    • macOS 15.4.1

      When WebEngineView is placed inside a component that has decimals defined for margins, the content of the view is rendered with artifacts like shown in the attached image. This is working correctly when using integers. The problem can only be seen on the non-HiDPI screen, on a HiDPI display (M1 macBook) the web content renders correctly. The content is also rendered correctly on Windows.

      The following code can be used to reproduce the issue:

      import QtQuick
      import QtWebEngine
      
      Window {
          width: 640
          height: 480
          visible: true
          Item {
              anchors.fill: parent
              anchors.leftMargin: 3.5 // works with leftMargin: 3
              WebEngineView {
                  anchors.fill: parent
                  url: "https://www.qt.io"
              }
          }
      } 

        1. decimal_margin.png
          284 kB
          Titta Heikkala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt_webengine_team Qt WebEngine Team
            tiheikka Titta Heikkala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes