10-14-2012 06:57 PM
10-15-2012 03:07 PM
Not quite sure what you are trying to show with the code you have pasted, however based off the title of the thread to invoke a C++ function from something in QML doesn't require you to do anything on the C++ side except write the function. Then in the header file you declare the function. Finally in the QML you do the actual invoking.
This example has a basic C++ function being called to do a calculation based off some QML inputs and a signal: http://bbcascadescode.tumblr.com/post/29294239402/