Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Emitting and handling signals with GoLang and QML respectively.
Forum Updated to NodeBB v4.3 + New Features

Emitting and handling signals with GoLang and QML respectively.

Scheduled Pinned Locked Moved Solved Language Bindings
5 Posts 2 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Nikhilesh NN Offline
    Nikhilesh NN Offline
    Nikhilesh N
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, that example is using Go bindings for Qt.

      So behind the scene, it's using C++.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Nikhilesh NN 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        From the looks of it, that example is using Go bindings for Qt.

        So behind the scene, it's using C++.

        Nikhilesh NN Offline
        Nikhilesh NN Offline
        Nikhilesh N
        wrote on last edited by
        #3

        @SGaist Hi, Samuel. Thanks for your reply. So, it means I can emit signals just like how it's done in C++, right?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Nikhilesh NN 1 Reply Last reply
          1
          • SGaistS SGaist

            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.

            Nikhilesh NN Offline
            Nikhilesh NN Offline
            Nikhilesh N
            wrote on last edited by
            #5

            @SGaist Thank you, Samuel. I will definetely try it out.
            Marking this topic as solved.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved