http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html
here useful examples. also same article can be found offline directly in QtCreator Help. On 21.12.2013 16:05, Jukka Heikkilä wrote:
Hi, I have successfully learned how to call C++ method from QML. I would like to see a practical example how to call QML function from C++ method. All examples and instructions which I have found from web have been such kind of codes where all is done from main loop. I'm not sure is my approach right, but in my program I would first like to call C++ method from QML and C++ function will retrive data. After the data retrive is ready the C++ method will call other C++ method which will update the screen (e.g. multiple labels). I would be very happy to get help with this problem and I think that the begginners will also fighting with this kind of problems. Happy Holidays! Kind Regards, Jukka Heikkilä @Juukks _______________________________________________ SailfishOS.org Devel mailing list
_______________________________________________ SailfishOS.org Devel mailing list