[SailfishDevel] setContextProperty
tw_bolek
tw_bolek at op.pl
Wed Sep 16 21:29:27 UTC 2015
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
More information about the Devel
mailing list