Skip to content
Erlang ⇔ QML bindings
Branch: master
Clone or download
krant cleanup
Latest commit 017a352 Apr 9, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore added .gitignore Jan 27, 2014
Makefile code cleanup, demo qml file, initial readme Apr 3, 2014 cleanup Apr 9, 2014
demo.qml cleanup Apr 9, 2014
eqml.cpp cleanup Apr 9, 2014
eqml.erl code cleanup, demo qml file, initial readme Apr 3, 2014

Erlang ⇔ QML bindings

This package is in a pre-alpha stage.


To try the eqml you'll need:

  • Erlang
  • Qt 5


Compile eqml and run erlang:


At the erlang prompt enter the following:


You should see a red window with a green square. Let's see how you can change QML properties from Erlang. Execute:

eqml:set(foo, color, "yellow").

Window color will change to yellow. Now let's check how you can subscribe to QML signals:

eqml:connect1(bar, clicked, hello).
receive A -> A end.

Erlang console will hang, waiting for message to come. Now click on green square. Erlang will print:


That's it. Let's check the final feature, QML function invocation from Erlang:

eqml:invoke(foo, scramble, "wtf").

QML will print to console:

md5("wtf") = aadce520e20c2899f4ced228a79a3083
You can’t perform that action at this time.