Emitting and handling signals with GoLang and QML respectively.
-
Greetings. I recently looked up two examples that use Go and QML binding.
https://github.com/therecipe/qt/tree/master/internal/examples/sailfish
In these examples, QML ListView is used, and QAbstractListModel is used in native Go. I have not tried running these examples as I still am doing some research before I install Go.
Anyways, I have a doubt regarding emitting and handling signals with these two languages, as stated in the topic title. I want to emit a signal via Go whenever a data is to be sent from the back-end. Is emitting a signal possible? Also if it is emitted, can I handle it with QML just like the way we handle signals caught from C++?Any help is appreciated. Thanks in advance.
-
Hi,
From the looks of it, that example is using Go bindings for Qt.
So behind the scene, it's using C++.
-
I would say yes, likely with some adaptation to the Go language. Like it is done for the Python bindings which syntax is different but functionality is the same.