Let's write QML/QtQuick GUI for OCaml (or Reason) using lablqml!
In this repo you can find my work about integrating OCaml and Qt. Initially, I
planned to generate binding code for OCaml and Qt Widgets and called this
lablqt. But I found it
hard to implement mostly because Qt relies on inheritance very much (we can't
add onClick handler for button without inheritance). Later I decided to
generate binding code for OCaml and QtQuick.
And I believe that QtQuick
is the right way to create UI in Qt right now.
From 14th of February 2017 it's renamed from
lablqml because it
is actually about QtQuick and not QtWidgets or Qt itself. If
you really need QtWidgets you can check out
- PPX syntax extension with code generator is in
- Library for interfacing with QtQuick 2 is in
- Demos are in
./configure && make testto build them.
- Demo app
qocamlbrowser(ocamlbrowser with QtQuick instead of Tcl/Tk) is located in separate repo.
./configure && make to build it. Don't forget to install
g++ and good Qt
version (>= 5.3 I think,
./configure will check for it, btw).