Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. problem with Qt WebAssembly while running in browser
Forum Updated to NodeBB v4.3 + New Features

problem with Qt WebAssembly while running in browser

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 921 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.
  • S Offline
    S Offline
    Sowjanya
    wrote on 4 Jan 2020, 13:36 last edited by
    #1

    By using this https://doc.qt.io/qt-5/wasm.html i created html page ,While running html page in browser i need to recieve packets from udp .It was not working in html .In qt it was working fine,any solution for this.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 4 Jan 2020, 14:33 last edited by
      #2

      Hi
      Make sure you are using a supported module.
      https://wiki.qt.io/Qt_for_WebAssembly#Known_issues_and_platform_notes
      supported:
      qtbase
      qtdeclarative
      qtquickcontrols2
      qtwebsockets
      qtsvg
      qtcharts
      qtmqtt
      Unsupported:

      qtmultimedia
      qtwebview

      Other modules are not tested and may or may not work.

      S 1 Reply Last reply 7 Jan 2020, 11:12
      0
      • L Offline
        L Offline
        lorn.potter
        wrote on 6 Jan 2020, 21:53 last edited by
        #3

        Sockets are not yet working with Qt Webassembly. There are a couple MR that will enable tcpsocket.
        UDP is not possible in a web browser, see the first comment from juj :
        https://github.com/emscripten-core/emscripten/issues/5196

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

        S 1 Reply Last reply 7 Jan 2020, 11:09
        3
        • L lorn.potter
          6 Jan 2020, 21:53

          Sockets are not yet working with Qt Webassembly. There are a couple MR that will enable tcpsocket.
          UDP is not possible in a web browser, see the first comment from juj :
          https://github.com/emscripten-core/emscripten/issues/5196

          S Offline
          S Offline
          Sowjanya
          wrote on 7 Jan 2020, 11:09 last edited by
          #4

          @lorn-potter Thanks for your information

          1 Reply Last reply
          0
          • M mrjj
            4 Jan 2020, 14:33

            Hi
            Make sure you are using a supported module.
            https://wiki.qt.io/Qt_for_WebAssembly#Known_issues_and_platform_notes
            supported:
            qtbase
            qtdeclarative
            qtquickcontrols2
            qtwebsockets
            qtsvg
            qtcharts
            qtmqtt
            Unsupported:

            qtmultimedia
            qtwebview

            Other modules are not tested and may or may not work.

            S Offline
            S Offline
            Sowjanya
            wrote on 7 Jan 2020, 11:12 last edited by
            #5

            @mrjj Thaks for your info ,qtmqtt is missing tried to add ,But got to know that Udp is not possible in webassembly.

            L 1 Reply Last reply 7 Jan 2020, 20:33
            1
            • S Sowjanya
              7 Jan 2020, 11:12

              @mrjj Thaks for your info ,qtmqtt is missing tried to add ,But got to know that Udp is not possible in webassembly.

              L Offline
              L Offline
              lorn.potter
              wrote on 7 Jan 2020, 20:33 last edited by
              #6

              @Sowjanya said in problem with Qt WebAssembly while running in browser:

              @mrjj Thaks for your info ,qtmqtt is missing tried to add ,But got to know that Udp is not possible in webassembly.

              There is an upcoming feature in emscripten that uses a proxy server on the desktop to send tcp/udp packets to the browser via websockets.

              https://github.com/emscripten-core/emscripten/pull/7672/files

              Full POSIX Sockets over WebSocket Proxy Server

              But it does take modifying code to add emscripten_init_websocket_to_posix_socket_bridge(), so all hope is not lost!

              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
              3

              1/6

              4 Jan 2020, 13:36

              • Login

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