initialize signal connect to the qml function.