Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

How to retrieve objects from .mjs files

$
0
0
Hi there and thx for reading and answering this post.

I just declare a basic variable like
Code:

var x = 2
in a .mjs file. ( Javascript module file)

then I import the .mjs file in my C++ application with
Code:

importModule("mylib.mjs");
So far so good, but before qt 4.14, I was able to retrieve x with e.g.
Code:

var y = module.x
But now, I can't get x anymore.

Have an idea ??

Thx for answering

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>