IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QML Script Compiler

A tool to compile functions and expressions in QML. The QML Script Compiler will compile functions and expressions in QML files of an application into C++ code within limitations set by the nature of JavaScript. It replaces qmlcachegen, and simply generates C++ code in addition to byte code for functions that can be exhaustively analyzed. The following flow chart explains the compilation of qmlsc.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QML Script Compiler

Image non disponible

Limitations when compiling JavaScript

Many JavaScript constructs cannot be efficiently represented in C++. qmlsc skips the C++ code generation for functions that contain such constructs and only generates byte code to be interpreted. Although, most common QML expressions are rather simple: value lookups on QObjects, arithmetics, simple if/else or loop constructs. Those can easily be expressed in C++, and doing so makes your application run faster.

qmlsc is available for commercial customers and some of its features are merged into qmlcachegen, which continues to be available with all versions of Qt.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+