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. Qt 6.4.1 WebAssembly - TextInput/TextField not receiving keyboard input

Qt 6.4.1 WebAssembly - TextInput/TextField not receiving keyboard input

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
8 Posts 5 Posters 1.8k 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.
  • M Offline
    M Offline
    Marcin22
    wrote on 8 Dec 2022, 08:15 last edited by
    #1

    I've recently built an application using WebAssembly and Qt 6.4.1 (emscripten 3.1.14). The user is supposed to be able to type custom text input. However, neither TextField nor TextInput accepts any keyboard input, besides copying and pasting a complete input from somewhere else. I am attaching a topic regarding the issue in Qt 5, as it seems to be still unresolved.

    Re: TextInput not editable in browser

    When compiling the desktop version, everything works as a charm. I am using macOS 12.6.

    M 1 Reply Last reply 5 May 2023, 15:14
    0
    • A Offline
      A Offline
      adazem009
      wrote on 28 Dec 2022, 18:20 last edited by adazem009
      #2

      I'm having the same issue.
      If I compile my app for desktop, my text fields are configured to show a blinking text cursor. However, it doesn't show any cursor at all on WebAssembly. It looks like the text fields don't get any focus.

      Edit: It will probably be resolved in Qt 6.5 (https://bugreports.qt.io/browse/QTBUG-105582)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adazem009
        wrote on 7 Apr 2023, 10:03 last edited by
        #3

        I can confirm that keyboard input works in Qt 6.5. Please mark this question "solved" if it works for you in Qt 6.5.

        1 Reply Last reply
        0
        • M Marcin22
          8 Dec 2022, 08:15

          I've recently built an application using WebAssembly and Qt 6.4.1 (emscripten 3.1.14). The user is supposed to be able to type custom text input. However, neither TextField nor TextInput accepts any keyboard input, besides copying and pasting a complete input from somewhere else. I am attaching a topic regarding the issue in Qt 5, as it seems to be still unresolved.

          Re: TextInput not editable in browser

          When compiling the desktop version, everything works as a charm. I am using macOS 12.6.

          M Offline
          M Offline
          Mesrine
          wrote on 5 May 2023, 15:14 last edited by Mesrine 5 Sept 2023, 15:06
          #4

          @Marcin22
          Hi I am facing the same problem.
          I am using qt6.6.0.
          The problem is that if I put a textfield or textinput that have more than 3(not sure the exact number) parents, the textfield do not allow to be editable.

          example:

          Edit: I test again and it happen if the textfield is inside a frame. You can test it here

          A 1 Reply Last reply 21 May 2023, 09:10
          0
          • M Mesrine
            5 May 2023, 15:14

            @Marcin22
            Hi I am facing the same problem.
            I am using qt6.6.0.
            The problem is that if I put a textfield or textinput that have more than 3(not sure the exact number) parents, the textfield do not allow to be editable.

            example:

            Edit: I test again and it happen if the textfield is inside a frame. You can test it here

            A Offline
            A Offline
            adazem009
            wrote on 21 May 2023, 09:10 last edited by
            #5

            @Mesrine The problem with your code is that you're using anchors in a layout. If you remove the anchors.centerIn: parent from the ColumnLayout, it'll work.

            M 1 Reply Last reply 22 May 2023, 13:55
            0
            • A adazem009
              21 May 2023, 09:10

              @Mesrine The problem with your code is that you're using anchors in a layout. If you remove the anchors.centerIn: parent from the ColumnLayout, it'll work.

              M Offline
              M Offline
              Mesrine
              wrote on 22 May 2023, 13:55 last edited by
              #6

              @adazem009 The textfield inside a column layout works, inside a frame it does not.
              There is nothing wrong on using anchors to set the position of the layout. One can not use anchors to set the position of the layout items. As far as i understand.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                James A
                wrote on 9 Aug 2023, 11:10 last edited by James A 8 Sept 2023, 11:41
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  Vile Lasagna
                  wrote on 13 Nov 2023, 06:31 last edited by
                  #8

                  Just found here after tearing my hair out with this exact problem using Qt 6.5.1

                  It's there even in the LTS T_T

                  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