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

WebEngineView renders with artifacts when using decimal numbers for margin

    XMLWordPrintable

Details

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

    Description

      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"
              }
          }
      } 

      Attachments

        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.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes