Skip to content

yobson/qml-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP Qml Bindings for Haskell

Build instructions

You need to install Qt6 (including all the qml stuff) for your system. Then you can build and install dotherside.

On mac os, I change my CMake install prefix to my homebrew prefix and had to manually edit the pkg-config file like so:

prefix=/opt/homebrew
libdir=/opt/homebrew/lib
includedir=/opt/homebrew/include

Name: DOtherSide
Description: C language library for creating binding for the Qt QML language
Version: 0.9.0
Libs: -L${libdir} -lDOtherSide -Wl,-rpath,/opt/homebrew/lib
Cflags: -I${includedir}/DOtherSide -I${includedir}

What is implemented

  • Complete raw bindings to dotherside
  • The beginings of a simple interface to use those bindings

It is very very rough around the edges, and some of the code is of serious poor quality. But it somewhat works!

Todo list:

  • Get nested QObjects working
  • Clean up QObjects as QVariants
  • Workout how to load QResources so that you can split the QML between multiple files
  • Look for memory leaks (At this point the allocations won't change much)
  • Faster diffing algorithm

Where are the docs?

Given that the interface is subject to change, I have not documented. Look at test/Main.hs and test/main.qml for example. We warned that QObjects in QObjects is not yet implemented. You can basically only use qProperty and qSlot as of now.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published