QQmlEngine rootContext setContextProperty
https://sailfishos.org/develop/docs/libsailfishapp/
Here's missing documentation that supposed to explain how to get QQmlEngine
instance, so that app could e.g. register global context property or something.
How to do it, given SailfishApp::main(argc, argv);
template?
PS Please, do not assume that I'm an expert in Qt.
ratijas ( 2019-02-24 17:40:49 +0200 )editFeel free to add it?
tortoisedoc ( 2019-02-24 18:00:52 +0200 )edit@tortoisedoc well, idk how to do it myself, hence asking a question.
ratijas ( 2019-02-24 18:38:50 +0200 )edit@ratijas, thanks for the example. I've submitted a PR to add this to the docs: https://github.com/sailfishos/libsailfishapp/pull/39 (comments welcome).
flypig ( 2019-03-13 13:24:13 +0200 )edit