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

wasm: DropShadow breaks mouse input

    XMLWordPrintable

Details

    • WebAssembly
    • 4d796cbf17da28e72ad25760a2ee8c27af96c202 (qt/qtbase/5.14)

    Description

      Adding a DropShadow to a QtQuick scene breaks all mouse input. The following simple example demonstrates the issue:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtGraphicalEffects 1.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")    
          Text {
              anchors.centerIn: parent
              text: "Hello, WASM!"
          }
          Rectangle {
              id: rectangle
              width: 100
              height: 100
              color: "red"
              visible: false
              enabled: true
          }
          MouseArea {
              anchors.fill: rectangle
              drag.target: rectangle
          }
          DropShadow {
              anchors.fill: rectangle
              source: rectangle
              verticalOffset: 4
              horizontalOffset: 4
              radius: 10
          }
      } 

      The red rectangle is draggable on other platforms, but not in the browser with WebAssembly.

      This issue is likely related to QTBUG-74754.

      A minimal example project is attached.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            dragly Svenn-Arne Dragly
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes