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 652 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 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 ?

    KroMignonK 1 Reply Last reply
    0
    • D divaindie

      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 ?

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on 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
      1
      • GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote on 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
        • KroMignonK KroMignon

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

          • Login

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