Embeding Haxe hxcpp code in your Qt/Qml application
-
wrote on 31 Aug 2015, 20:37 last edited by Fred_at_Plexant
Hello,
Many of you have probably heard about Haxe.
Haxe has a C++ backend that allows to generate C++ code from Haxe code.
I'm wondering if any of you already tested to embed such generated code in its Qt and Qml application and run it on mobile devices on iOS and Android ?My idea is actually very much focused on using Cocktail, a html5/css3 rendering engine written in Haxe, inside an iOS application. I would use it in place of the WebView that has so many problems, the first major one being to be placed on top of any Qml layer.
Hope it can open an interesting discussion and serve for others too.
Fred
-
wrote on 2 Sept 2015, 11:18 last edited by
Hey,
I am successfully using hxcpp in Qt application. I have not tried it on iOS yet, but android works. But I am not calling any Qt function from haxe. Instead I am building a C++ static lib from haxe containing the backend code. Then I have some C++ wrapper code that connects the backend functions with QML.
Best Regards,
Nathan
1/2