TextArea onTextChanged not beeing called



  • 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?



  • Hi.

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

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.