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 8 Jan 2018, 14:07 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
    • J Offline
      J Offline
      jpnurmi
      wrote on 8 Jan 2018, 15:52 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
      • O Offline
        O Offline
        ODБOï
        wrote on 8 Jan 2018, 15:53 last edited by
        #3

        Hi,
        you can use 'onTextChanged' signal

        onTextChanged: {
        console.log(text)
        }

        L 1 Reply Last reply 9 Jan 2018, 14:04
        0
        • O ODБOï
          8 Jan 2018, 15:53

          Hi,
          you can use 'onTextChanged' signal

          onTextChanged: {
          console.log(text)
          }

          L Offline
          L Offline
          LongAiR
          wrote on 9 Jan 2018, 14:04 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.

          O 1 Reply Last reply 9 Jan 2018, 15:43
          0
          • L LongAiR
            9 Jan 2018, 14:04

            @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.

            O Offline
            O Offline
            ODБOï
            wrote on 9 Jan 2018, 15:43 last edited by
            #5

            @LongAiR ok sorry

            1 Reply Last reply
            0

            1/5

            8 Jan 2018, 14:07

            • Login

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