Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextArea onTextChanged not beeing called
Qt 6.12 LTS is out! See what's new in the release blog

TextArea onTextChanged not beeing called

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 968 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
    dokif
    wrote on last edited by
    #1

    Hi, i have this code in a *.ui.qml file:

            TextArea {
                id: textAreaText
                width: parent.width / 2 - 10
                text: qsTr("")
            }
    

    Then, i have this in the asociated qml file:

    textAreaText.onTextChanged: {
        console.log("a")
    }
    

    But When i write to TextArea, onTextChanged does not get called. What am i missing?

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

      Hi.

      TextArea {
      ...
      
          onTextChanged: 
          {
              console.log("a")
          }
      }
      
      1 Reply Last reply
      1

      • Login

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