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

QML ScrollView with Text Inputs in WebAssembly shifts after two left mouse clicks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.10.1, 6.11.0 Beta3
    • 6.9.3, 6.10.0
    • GUI: Window management
    • None
    • Ubuntu, Chrome Version 141.0.7390.65 (Official Build) (64-bit), Firefix 143.0.4 (64-bit)
    • WebAssembly
    • 354e84f7d (dev), 3c8256c9d (6.10)

      When running a QML application in WebAssembly that includes a ScrollView containing any text input component (TextArea, TextInput, or TextField), the window content unexpectedly shifts toward the top-left corner after two consecutive left mouse button presses (not a double-click) inside the text component.
      A gray area appears on the bottom and right sides, and all mouse interaction coordinates become offset.

      The issue also reproduces if using long multi-line text instead of a large font size.

      The behavior does not occur on desktop (Ubuntu) Qt builds

       

       

      import QtQuick
      import QtQuick.Controls
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          color: "#8888ff"
          ScrollView {
              anchors.fill: parent
              anchors.margins: 100
              TextArea {
                  color: "black"
                  text: "1234567890\n9876543210"
                  font.pixelSize: 1500
              }
          }
      }
      

       

       

        For Gerrit Dashboard: QTBUG-141054
        # Subject Branch Project Status CR V

            evenandersen Even Oscar Andersen
            vmudryk Volodymyr Mudryk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes