libqmlbind
A C library for creating QML bindings for other languages easily through exporting objects to QML
|
libqmlbind is a C library for creating QML bindings for other languages easily through exporting objects and classes to QML.
include/qmlbind/qmlbind_global.h
include/qmlbind/<classname>.h
which contains all methods defined on the class.const type*
-pointers never transfer ownership._new
are constructors, they transfer the ownership of the returned struct to the caller._release
are destructors, they take ownership of their first argument, called self
.self
as first parameter are methods on self
, they never take ownership of it.You can install libqmlbind via Homebrew on Mac. (using a custom tap)
For Arch Linux, you can find the latest release and the git master version of libqmlbind in the AUR.
gcc 4.8.4
.Qt 5.6
and Qt 5.2.1
.First, clone the repository with all its submodules:
Alternatively, if you already cloned but forgot --recursive
, use this inside libqmlbind
:
Use qmake to generate the Makefile
:
and then build it:
From the main directory:
Just run
from the project's main directory. You can then find the documentation in doc/html/index.html
.
If you're not happy with libqmlbind's interface or features, you might be interested in DOtherSide, an alternative C library for creating QML bindings. While libqmlbind was designed with dynamic languages like ruby in mind, DOtherSide was designed for static languages like D. (You can use libqmlbind for static languages, too, though, you just won't need some parts of the API).