Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Emitting and handling signals with GoLang and QML respectively.
Greetings. I recently looked up two examples that use Go and QML binding.
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.
From the looks of it, that example is using Go bindings for Qt.
So behind the scene, it's using C++.
@SGaist Hi, Samuel. Thanks for your reply. So, it means I can emit signals just like how it's done in C++, right?
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.
@SGaist Thank you, Samuel. I will definetely try it out.
Marking this topic as solved.