mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 13:15:17 +03:00
3738bb9320
These changes introduce two new functions called (*qml.QJSEngine).NewGoType and (*qml.QJSEngine).ToGoType, that can be used (similiar to how core.NewQVariant1 and (*core.QVariant).ToGoType can be used) to convert Go objects and functions to *qml.QJSValues and vice versa. This allows for a more natural communication between Go and Qml/JS and makes it possible to simply pass a Go structs to Qml/JS and then call Go methods on that object. For this to work, the object passed to Qml/JS needs to implement the `Pointer() unsafe.Pointer` and `SetPointer(unsafe.Pointer)` functions atm. Which means, since all Qt classes already implement these functions, that you can now use the whole binding from Qml/JS as well and theoretically create a full Qt application inside an QJSEngine as well. A few example applications almost entirely written in JS can be found here: https://github.com/therecipe/examples/tree/master/js/ Furthermore, the `widgets_playground` example (https://github.com/therecipe/widgets_playground) now fully works on desktop and mobile targets as well. other changes: * core.NewQVariant1 and (*core.QVariant).ToGoType now recognize json tags * workaround for qtmoc issue related to named imports * speed-up go module android docker deployments * fix webengine related qtdeploy bug on macOS * fix int overflow issue for arm docker images * fix js docker images |
||
---|---|---|
.. | ||
env | ||
qtdeploy | ||
qtminimal | ||
qtmoc | ||
qtrcc | ||
qtsetup |