Emitting and handling signals with GoLang and QML respectively.
-
wrote on 10 May 2019, 03:22 last edited by
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++.
-
Hi,
From the looks of it, that example is using Go bindings for Qt.
So behind the scene, it's using C++.
wrote on 13 May 2019, 03:21 last edited by@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.
-
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.
wrote on 14 May 2019, 05:03 last edited by@SGaist Thank you, Samuel. I will definetely try it out.
Marking this topic as solved.
1/5