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. text Area and text field's "text" value will updated only after pressing enter or space button in android ?

text Area and text field's "text" value will updated only after pressing enter or space button in android ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 651 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.
  • D Offline
    D Offline
    divaindie
    wrote on 27 Feb 2019, 09:12 last edited by
    #1

    Hi All,
    I was testing my android application and i found a strange behavior in textArea and textField ,where i have to explicitly press enter key/space key at the end ,then only "text" value will get updated to the whatever value i entered in textArea.
    but same application if i run on desktop environment it doesn't require me to press enter key at the end,it works perfectly fine .
    but i don't know why i have to press enter at the end in android ?

    K 1 Reply Last reply 27 Feb 2019, 09:25
    0
    • D divaindie
      27 Feb 2019, 09:12

      Hi All,
      I was testing my android application and i found a strange behavior in textArea and textField ,where i have to explicitly press enter key/space key at the end ,then only "text" value will get updated to the whatever value i entered in textArea.
      but same application if i run on desktop environment it doesn't require me to press enter key at the end,it works perfectly fine .
      but i don't know why i have to press enter at the end in android ?

      K Offline
      K Offline
      KroMignon
      wrote on 27 Feb 2019, 09:25 last edited by
      #2

      @divaindie I don't know if it is relevant, but did you try to disable "PredictiveText"

                 TextField {
                      inputMethodHints: Qt.ImhNoPredictiveText
                  }
      
      

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      D 1 Reply Last reply 27 Feb 2019, 14:14
      1
      • G Offline
        G Offline
        GrecKo
        Qt Champions 2018
        wrote on 27 Feb 2019, 09:52 last edited by
        #3

        This is indeed related to predictive input. You can the partial text input via the preeditText property.

        1 Reply Last reply
        1
        • K KroMignon
          27 Feb 2019, 09:25

          @divaindie I don't know if it is relevant, but did you try to disable "PredictiveText"

                     TextField {
                          inputMethodHints: Qt.ImhNoPredictiveText
                      }
          
          
          D Offline
          D Offline
          divaindie
          wrote on 27 Feb 2019, 14:14 last edited by
          #4

          @KroMignon said in text Area and text field's "text" value will updated only after pressing enter or space button in android ?:

          inputMethodHints

          thanks ..issue solved !!

          1 Reply Last reply
          0

          1/4

          27 Feb 2019, 09:12

          • Login

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