Janiczek / elm-in-qt

(WIP) Elm app driving QT (QML) native binary!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elm in Qt

Screenshot of Elm in Qt

This is an example project that runs Elm inside Qt 5 (more precisely, QML).

It gives you the declarative Model -> View way to do layouts, that you know and love from Elm, React etc.

Requirements

  • make
  • qmake / QT Creator
  • yarn

For the QT part you'll need qmake and make (or the whole ); for the Elm part you'll need yarn

Note that compiling the QT project needs the src-elm/elm.js file to exist. Tweak your QT target configs to run make -C src-elm before building!

Build step screenshot

TODO

  • decoders in events, to be able to get props from the objects... TextInput etc.
  • proper VDOM diffing and patching, to do less stuff. Our Counter demo is not very snappy right now!
  • find out how to do statically built binaries

About

(WIP) Elm app driving QT (QML) native binary!


Languages

Language:Elm 77.0%Language:JavaScript 11.8%Language:QMake 3.4%Language:Makefile 3.3%Language:QML 2.7%Language:C++ 1.7%