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.
  • N Offline
    N Offline
    Nikhilesh N
    wrote on 10 May 2019, 03:22 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 May 2019, 19:34 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

      N 1 Reply Last reply 13 May 2019, 03:21
      2
      • S SGaist
        10 May 2019, 19:34

        Hi,

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

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

        N Offline
        N Offline
        Nikhilesh N
        wrote on 13 May 2019, 03:21 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 May 2019, 21:24 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

          N 1 Reply Last reply 14 May 2019, 05:03
          1
          • S SGaist
            13 May 2019, 21:24

            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.

            N Offline
            N Offline
            Nikhilesh N
            wrote on 14 May 2019, 05:03 last edited by
            #5

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

            1 Reply Last reply
            0

            1/5

            10 May 2019, 03:22

            • Login

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