[Interest] Re:Re: Could I use V8 engine directly in QT?

z.hang.1992 z.hang.1992 at foxmail.com
Fri Dec 9 02:04:14 CET 2022

Hi Max,

The v8 is google ve JavaScript engine, but I have misunderstood this,
I have found some articles said that before Qt 5.2, qml used the v8 engine,
and start @t 5.2, the qml uses the v4vm engine which is a new developed
JavaScript engine, and mainly for qml.

And in the v4vn engine, it comply the ECMAScript 7 standard in the latest
version, and for this version, the asynchronous function is not supported.
For me, It would be a big effort to add the feature.

And as I mentioned the "v8 (10.2.154)" seems only used by Qt webengine


> Hi Bob,
> What is this v8 you're referring to (in terms of QJSEngine I mean)? Can
> you explain "it used" further?
> It's possible, in many/most cases, to extend or even replace the
> built-in JS types in QJSEngine (not QQmlEngine). Either with pure JS
> implementations or C++ or a mix. I'm not sure about adding language
> syntax constructs like async/await though (but you can already use
> Promises, for example).
> -Max
> On 12/7/2022 3:59 AM, z.hang.1992 wrote:
> > Hi,
> >
> > Currently, I'm using QT 6.4.1, and I use QJSEngine to run JavaScript,
> > but I found it does not support the latest EMACScript standards, e.g,
> > async/await and string.prototype.replaceAll(). But the v8(10.2.154) it
> > used supports these. Seems QV4 implements the ECMAC by itself.
> >
> > So, Is there any way to use v8 directly in QT?
> >
> > It would be good to have some suggestions from you, maybe my
> > understanding about QJSEngine is totally wrong.
> >
> > Thanks, and have a nice day!
> >
> > Bob
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20221209/b21c73bc/attachment.htm>

More information about the Interest mailing list