Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. TextInput not editable in browser
QtWS25 Last Chance

TextInput not editable in browser

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 1 Posters 545 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SyntaXS Offline
    SyntaXS Offline
    SyntaX
    wrote on last edited by
    #1

    I just setup a minimalistic example project

    import QtQuick 2.15
    import QtQuick.Window 2.15
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Text Input Test")
    
        TextInput {
            text: "predefined Text"
        }
    }
    

    If I compile for desktop (macOS), the textInput works as intended: I am able to click into the element and change the text by typing on my hardware keyboard :D

    But if I compile the same project for WebAssembly, the predefined text gets shown, I am able to click in the textInput (also the onFocusChanged event triggers) but I cannot edit the text?
    For debugging I added onTextEdited and onTextChanged listeners, they both seem to don't get called?

    Am I missing something important here or can this be related to this bug report:
    https://bugreports.qt.io/browse/QTBUG-80449?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel

    Qt version 5.15 for clang and WebAssembly,
    Emscripten version 1.39.17

    1 Reply Last reply
    0
    • SyntaXS Offline
      SyntaXS Offline
      SyntaX
      wrote on last edited by
      #2

      I noticed, that although I am not able to "write" Text in the input field, I can paste text from elsewhere?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved