Linking QML and c++ code for Stop functions.