×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    228

    TextField / TextInput do not emit textChanged signal

    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.

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    45

    Re: TextField / TextInput do not emit textChanged signal

    Hi,

    I had a similar problem in the past, but I think it could be the same. If you typing with the virtual keyboard, the predictive input is enabled by default. This function is blocking the textChanged signal. All you need to do is add this line to your TextInput QML element:

    inputMethodHints: "ImhNoPredictiveText"

    let me know if this worked

    cheers,
    chriske

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    228

    Re: TextField / TextInput do not emit textChanged signal

    Hi Chriske,

    You've saved me a sleepless night. Thanks, it works perfectly now!

  4. #4
    Registered User
    Join Date
    Oct 2011
    Posts
    1

    Re: TextField / TextInput do not emit textChanged signal

    Great. It worked for me. Thank you.

Similar Threads

  1. Replies: 4
    Last Post: 2011-12-01, 12:32
  2. How to emit signal from javascript code
    By ram4soft in forum Qt
    Replies: 2
    Last Post: 2011-04-17, 14:31
  3. TextField TextChanged event type
    By lelouch.lamperouge in forum Symbian
    Replies: 8
    Last Post: 2010-03-16, 09:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×