In QML, in some situations, I need to remove the old method to a signal and redefine a new method to handle the signal, a demo is as following:
import QtQuic
You haven't used the explicit connect() function to begin with. To disconnect() a function, it has to have been connected explicitly using connect().
connect()
disconnect()
There is an example here that might help:
http://doc.qt.io/qt-5/qtqml-syntax-signals.html#connecting-signals-to-methods-and-signals