Hello,
https://lists.sailfishos.org/pipermail/devel/2013-December/001717.html
------ Исходное сообщение ------
От: "tw_bolek" <tw_bo...@op.pl>
Кому: "devel@lists.sailfishos.org" <devel@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-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org