×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Question qt-components TextArea onTextChanged

    I'm trying to determine if the text of my TextArea has changed but it seems the onTextChanged signal is not very helpful since its also triggered when the cursor is moving. Has anyone been there before?

  2. #2
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: qt-components TextArea onTextChanged

    Actually onTextChanged is not triggered when moving the cursor using the keyboard arrows. It is triggered however when doing any sort of touch in the TextArea.

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: qt-components TextArea onTextChanged

    On which device are you testing this, E7? On my N8/Qt 4.7.3 TextArea.onTextChanged works quite ok - although it does trigger needlessly sometimes, and twice for each change in text. A workaround is to create a new string property to store TextArea.text into, and in onTextChange compare/update it only when it really has changed.

  4. #4
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: qt-components TextArea onTextChanged

    That's right E7. If the string is quite large that's going to be a problem though.

Similar Threads

  1. TextArea max. text length
    By pixsta in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-10-06, 09:21
  2. TextEdit OnTextChanged question?
    By ram4soft in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-09-20, 10:31
  3. Replies: 0
    Last Post: 2010-08-31, 04:05
  4. TextArea Problem
    By nitant_flashlite in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2010-05-27, 03:15
  5. TextArea Bug
    By vvvnsk in forum Personal Profile
    Replies: 0
    Last Post: 2005-01-04, 10:44

Posting Permissions

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