[SailfishDevel] Calling QML function from C++ class

David Greaves david.greaves at jolla.com
Sat Dec 21 10:59:39 UTC 2013


Or:
http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html


On 21/12/13 10:42, Gabriel Boehme wrote:
> 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
> 
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> 



More information about the Devel mailing list