Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

qcad/qtjsapi

Open more actions menu

Repository files navigation

QtJSAPI

QJSEngine bindings for the Qt API

QtJSAPI replaces the Qt Script based qtscriptgenerator for Qt 5 which was made obsolete when the Qt Script module was declared deprecated. QtJSAPI has been tested with Qt 6.5.

License

MIT License. See LICENSE.txt.

Build

cmake -G Ninja .
ninja

Usage

// create QJSEngine
QJSEngine* engine = new QJSEngine();
// make Qt API classes scriptable: 
RJSApi* rjsapi = new RJSApi(engine);
// usage example:
engine->evaluate("var w = new QWidget(); w.show();");

Examples

The library comes with a console application that evaluates a script passed to it on the command line. You can run the examples as follows:

./out/qtjsapiconsole console/examples/HelloWorld/HelloWorld.js

About

QJSEngine bindings for the Qt 6 API

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.