Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextInput and android keyboard input handling
Forum Updated to NodeBB v4.3 + New Features

TextInput and android keyboard input handling

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 1.7k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    LongAiR
    wrote on last edited by
    #1

    Hello,

    How can I get information from android virtual keyboard that any character has been put by user?

    I have tried Keys.onPressed and TextInput.onTextEdited.

    As I noticed, signal is sent always after when we change word eg. add space or enter. I need sth to get every single character (+ spaces and backspaces) during typing.

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      TextInput::displayText:

      Note: Unlike the TextInput::text property, this contains partial text input from an input method.

      1 Reply Last reply
      2
      • ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        Hi,
        you can use 'onTextChanged' signal

        onTextChanged: {
        console.log(text)
        }

        L 1 Reply Last reply
        0
        • ODБOïO ODБOï

          Hi,
          you can use 'onTextChanged' signal

          onTextChanged: {
          console.log(text)
          }

          L Offline
          L Offline
          LongAiR
          wrote on last edited by
          #4

          @LeLev this is what I've tried :) and it is not working.

          @jpnurmi Thanks! I did't notice before this property, it works like it should.

          ODБOïO 1 Reply Last reply
          0
          • L LongAiR

            @LeLev this is what I've tried :) and it is not working.

            @jpnurmi Thanks! I did't notice before this property, it works like it should.

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #5

            @LongAiR ok sorry

            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