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. [Solved] TextField / TextInput do not emit textChanged signal
Forum Updated to NodeBB v4.3 + New Features

[Solved] TextField / TextInput do not emit textChanged signal

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 10.0k 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.
  • M Offline
    M Offline
    meego_man
    wrote on last edited by
    #1

    Hi,

    Does anyone experienced strange behavior of TextField/TextInput on Harmattan platform of not emitting signal textChanged when virtual keyboard is active?

    I'm trying to implement incremental search but it doesn't work. I debugged the code and found that textChanged signal is not emitted when virtual keyboard is open (signal is emitted only when I press Enter key). I tried to put timer to regularly check the content of the input field but it's also not working, while keyboard is open text property is not changing until Enter key is pressed. Any workaround exist to this problem? Thank you

    P.S. on Emulator code works perfectly and also on Nokia N950 with hardware keyboard in use.

    I&N MobiSoft http://inmobisoft.com

    1 Reply Last reply
    2
    • M Offline
      M Offline
      meego_man
      wrote on last edited by
      #2

      Solved. It was necessary to disable the predictive input for that field:

      inputMethodHints: Qt.ImhNoPredictiveText;

      I&N MobiSoft http://inmobisoft.com

      1 Reply Last reply
      4
      • I Offline
        I Offline
        Illogica
        wrote on last edited by
        #3

        Applies to Android, too. TextField will not fire onTextChanged unless you provide it with inputMethodHints: Qt.ImhNoPredictiveText.

        1 Reply Last reply
        2

        • Login

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