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

Windows: QML Button icon does not render image from WebEngine properly

XMLWordPrintable

    • Windows

      Test code:

      import QtQuick
      import QtWebEngine
      import QtQuick.Controls
      
      Window {
      width: 200
      height: 100
      visible: true
      
      WebEngineView {
      id: view
      anchors.fill: parent
      url: "https://www.qt.io"
      }
      
      Row {
      Button {
      icon.source: view.icon
      icon.width: 50
      icon.height: 50
      width: 50
      height: 50
      }
      Image {
      source: view.icon
      width: 50
      height: 50
      }
      }
      } 

      This results in the Button and the Image showing different images, despite pulling from the same source. In this case the white Qt text is missing from the icon altogether.

      Attempting to upscale both shows the inconsistency persists no matter how large they are.

      Note: This works on Linux, might be a timing issue.

        1. qtbug139140.qml
          0.3 kB
        2. qtbug139140.png
          qtbug139140.png
          66 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes