Custiomize signal in textfield



  • Hi

    I want to custiomize the textfield signals like editing finsihed and textchanged to acess another qml file.

    eg

    Page1.qml
    item{
    property int tfwidth:50
    property int height:10
    propert string textcolor:"red"

    textfield{

    width:tfwidth
    height:tfheight

    }

    page2.qml

    page1{

    }
    page1{

    }

    Here i obtain textchange and editing finshed from page1 to page 2.



  • You can do this:
    Page1.qml
    item{
    property int tfwidth:50
    property int height:10
    propert string textcolor:"red"
    signal textChanged()

    textfield{

    width:tfwidth
    height:tfheight
    onTextChanged: parent.textChanged()
    }

    page2.qml

    page1{
    onTextChanged: { // handle textchanged }
    }
    page1{
    onTextChanged: { // handle textchanged }
    }



  • @kd_wala

    Thank you for your reply.


Log in to reply
 

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