Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Richard Weickelt
> OK, that does paint a different picture. The feature you are asking for, > then, is for QJSEngine to allow defining ECMAScript modules from C++, that > can be imported in your JavaScript files via standard ECMAScript "import" > statements. I would not be automatically opposed to such a feature.

Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Ulf Hermann
I am not loading QML documents at all nor do I need QML tooling here. This is pure JS. I have a bunch of JS code snippets to evaluate. The snippets expect certain properties to exist, but they do not necessarily share the same context. Some of them do though. OK, that does paint a different pict

Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Richard Weickelt
Thanks for your reply. > >> I am loading a .js file with QJSEngine::importModule(). The result is >> QJSValue object containing all exported functions and properties from the >> module. >> >> // file.js >> export function someFunction(someArg) { >> return someArg; >> } >>

[Interest] free_contig_range warning on mediaplayer stops

2020-04-15 Thread nus1998
Hi All, It's very likely as QTBUG-73084 that Kernel complains non-freed memory when video playback ends. however, on current yocto release, there is no gstimxcommon ( I guess the replacement is gstreamer-fsl ) so the patch doesn't work on current yocto release (imx-linux-zeus 5.4.3_2.0.0, qt 5

Re: [Interest] Qt 5.12.x LTS

2020-04-15 Thread Ramakanth Kesireddy
Thanks for your email. Since QPA backend in our platform being used is LinuxFB, does it impacts on selection of 5.12 LTS ?As I read in the embedded Linux documentation that behaviour of EGLFS and LinuxFB have been synchronised as of Qt 5.9 with regards to window sizing policy which is our desired

Re: [Interest] How to set a QJSValue with functions as a context property in QQmlContext?

2020-04-15 Thread Ulf Hermann
Is there a way to set a QJSValue as a context property in QQmlContext and retain function properties? You should not do this. Context properties are invisible to any tooling or static analysis of your QML code and add significant complication to the name lookup logic. The fact that you can inj