Code Monkey home page Code Monkey logo

haxe's Introduction

Introduction

This repo showcases the PoC of the new interop module of therecipe/qt and is part of a series of language bindings for Qt.

The series consists of the Go, the JavaScript/TypeScript, the Dart/Flutter, the Haxe and the Swift binding for Qt.

Other bindings to languages such as Kotlin, Java, C#, Python, Node.js and Ruby are planned as well.

Status

Almost all Qt functions and classes are accessible from Haxe and you should be able to find everything you need to build fully featured Qt applications in Haxe, the feature-set shown represents only a small portion of all the features available.

However this is still very much experimental, and there are known memory leaks and other limitations such as the missing support for enums.

Also, a word of warning, the interop api isn't frozen yet and might change in the future.

If you want to dig around, checkout the Main.hx and the Internal.hx files were all of the logic used for this binding is buried.

The working targets atm are the interpreter, the Java targets and the C# target (the C# target wasn't fully tested though).

The other targets all either fail at run or compile time, checkout the make.sh for more info.

Info

For general information about therecipe/qt, checkout: https://github.com/therecipe/qt

The Qt API Docs can be found here: https://doc.qt.io/qt-5/classes.html

If you have questions, join our Slack channel #qt-binding (invite yourself here)

Usage

Setup therecipe/qt and install Haxe: https://build.haxe.org/builds/haxe/ (this nightly version (3ef2074) was used during development; to get support for module level fields and functions)

Next run the make.sh script in the root of the repo to build the application.

If you want to re-generate the Haxe binding, you can use the gen.sh script to do so.

The binding was only tested on macOS, but it should work on Windows and Linux as well.

haxe's People

Contributors

therecipe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

haxe's Issues

Windows runtime error: No connection could be made ... target machine actively refused it

Very cool project!

When I try this on windows machine, both --interp and --jvm targets compile, but the api calls seem to be blocked by the os:

qt/Internal.hx:59: httpRequest error: ["","","interop.PseudoQJSEngine_qjsEngine","",null] -> No connection could be made because the target machine actively refused it.

Ideas how to solve this?

Thanx, and good luck with this project..!

// Jonas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.