[SailfishDevel] Calling QML function from C++ class

Gabriel Boehme m.gabrielboehme at googlemail.com
Sat Dec 21 10:42:59 UTC 2013


Here is a Link in addition. It's from Qt4.8 Doc but still valid and a
way to go. :)

http://qt-project.org/doc/qt-4.8/qtbinding.html

Am Samstag, den 21.12.2013, 12:05 +0200 schrieb Jukka Heikkilä:
> 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




More information about the Devel mailing list