[SailfishDevel] setContextProperty
Andrey Kozhevnikov
coderusinbox at gmail.com
Wed Sep 16 21:31:30 UTC 2015
Hello,
https://lists.sailfishos.org/pipermail/devel/2013-December/001717.html
------ Исходное сообщение ------
От: "tw_bolek" <tw_bolek at op.pl>
Кому: "devel at lists.sailfishos.org" <devel at lists.sailfishos.org>
Отправлено: 17.09.2015 2:29:27
Тема: [SailfishDevel] setContextProperty
>Please excuse me guys for being such a newbie. Coming from BB10 where
>many details are different, I have a lot of problems with even the most
>basic stuff on Sailfish :(
>
>I have a Q_INVOKABLE - let's say something like:
>
>QInt DoSomeMath() {
>
>// does some calulation
>
>return result;
>
>}
>
>and I need to call it from QML, e.g. like this:
>
>myQmlProperty = _myapp.DoSomeMath()
>
>I've got everything working, except for how (and where) to
>setContextProperty (_myapp) so that I can call it from QML...
>
>Can you please help? That's ALL left to make my project complete.
>
>Once again, thank you very much!
>Bolek
>_______________________________________________
>SailfishOS.org Devel mailing list
>To unsubscribe, please send a mail to
>devel-unsubscribe at lists.sailfishos.org
More information about the Devel
mailing list