1

Topic: Qt and ECMAScript 6

All kind day! We build in support of scripts in own Qt application (Qt 5.8). I while the beginner in this business and all c do not know. The question in supports what last specification ECMAScript Qt Scripting? It would be desirable to have support of classes, and it as I understand only in ECMAScript 6 is present. That QJSEngine that QScriptEngine - both swear on the type code: class AnimalES6 {constructor (name) {this.name = name;} doSomething () {console.log ("I'm a" + this.name);}} In advance thanks!

2

Re: Qt and ECMAScript 6

Hello, Nikolaz, you wrote: http://doc.qt.io/qt-5/ecmascript.html This reference contains a list of built-in objects, functions and properties supported by Qt Script. For a detailed description, see the ECMA-262 specification.

3

Re: Qt and ECMAScript 6

Hello, Dead Down, you wrote: > > This reference contains a list of built-in objects, functions and properties supported by Qt Script. For a detailed description, see the ECMA-262 specification. Thanks, but I it already repeatedly "see" and are is specific here this place.  here in Qt 5.8 and 5.9 on which I tried it, QJSEngine swears on a keyword class. From here there was also a question: what was specific supports the version of specification Ecma Qt? Surrenders to me that the link to page Qt is exposed for a long time, and the information on ECMA-262 is far cunning forward.