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. QML Text field with google keyboard suggestion error
Forum Updated to NodeBB v4.3 + New Features

QML Text field with google keyboard suggestion error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 330 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.
  • V Offline
    V Offline
    vudangkhoa2906
    wrote on last edited by vudangkhoa2906
    #1

    In my mobile app, I'm writing a search bar. I use qml TextArea to get the user input. When a user is typing, the app checks for the change of the text every second, and if the text changed, it will send a request to the server with the new text as the query.
    Now the problem is with android keyboard. If google autosuggestion is on, whenever I type, the textChanged signal is emitted, but when I print the text (onTextChanged callback), the part of the input that is underline (by google auto suggest, as shown in https://img.purch.com/o/aHR0cDovL3d3dy5sYXB0b3BtYWcuY29tL2ltYWdlcy93cC9wdXJjaC1hcGkvaW5jb250ZW50LzIwMTMvMTIvc2NyZWVuc2hvdF8yMDEzLTEyLTAzLTEyLTA1LTQ1LTY3MHgzNzYuanBn) is not in the text.

    Here is the part of the code

    onTextChanged: {
    console.log(messageInput.text, messageInput.text.length)
    }

    if I keep typing but without a space, etc., then the google autosuggest underline is still there, and I will keep getting the same text, until I press space or any punctuation mark

    how do fix this?

    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