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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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
      0
      • lorn.potterL Offline
        lorn.potterL Offline
        lorn.potter
        wrote on 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
        3
        • lorn.potterL lorn.potter

          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 last edited by
          #4

          @lorn-potter Thanks for your information

          1 Reply Last reply
          0
          • mrjjM mrjj

            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 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.

            lorn.potterL 1 Reply Last reply
            1
            • S Sowjanya

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

              lorn.potterL Offline
              lorn.potterL Offline
              lorn.potter
              wrote on 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

              • Login

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