Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Is it possible to embind Qt class that has a signal in emscripten?
QtWS25 Last Chance

Is it possible to embind Qt class that has a signal in emscripten?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyembindemscriptenjavascriptsignals & slots
2 Posts 2 Posters 582 Views
  • 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.
  • A Offline
    A Offline
    AliGB
    wrote on 6 Feb 2021, 20:42 last edited by
    #1

    I want to send a signal from JS.
    I can embind classes (https://emscripten.org/docs/porting/connecting_cpp_and_javascript/embind.html), but before I attempt to, I wanted to know if signals can be part of the class as well.

    Thanks.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 7 Feb 2021, 01:29 last edited by
      #2

      I am not sure Qt signals would work. You should certainly be able to so callbacks though.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      0

      2/2

      7 Feb 2021, 01:29

      • Login

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