Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Solved QNetworkConfigurationManager QSharedMemory unknown

    Qt for WebAssembly
    3
    4
    254
    Loading More Posts
    • 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.
    • niqt
      niqt last edited by

      Hi,
      compiling my Qt application with webassembly i have these errors:
      error: unknown type name 'QSharedMemory'
      error: unknown class name 'QNetworkConfigurationManager'

      JonB 1 Reply Last reply Reply Quote 0
      • JonB
        JonB @niqt last edited by JonB

        @niqt
        Qt for WebAssembly only supports a subset of all the Qt modules (e.g. possibly some like module-qtbase module-qtdeclarative module-qtquickcontrols2 module-qtwebsockets module-qtsvg module-qtcharts module-qtmqtt, taken from https://wiki.qt.io/Qt_for_WebAssembly). What reference are you using which suggests either of these Qt classes are currently supported?

        1 Reply Last reply Reply Quote 1
        • niqt
          niqt last edited by

          Yes, but I read "Other modules are generally untested and may work", maybe its better to write only what works, because is explicitly wrote that only "Not supported: QtMultimedia, QtWebView". However, thanks for your advice.

          "Supported Qt Modules

          Qt for WebAssembly supports a subset of the Qt modules. The following lists the currently tested modules. (You can can paste in the list as arguments to "make", which should then build the modules)

          module-qtbase module-qtdeclarative module-qtquickcontrols2 module-qtwebsockets module-qtsvg module-qtcharts module-qtmqtt 
          

          Other modules are generally untested and may work.

          Not supported: QtMultimedia, QtWebView
          "

          1 Reply Last reply Reply Quote 0
          • lorn.potter
            lorn.potter last edited by

            Hi,
            Although QNetworkAccessManager is supported, QNetworkConfigurationManager is not.

            That said, there is a patch that implements a very simple configuration plugin for wasm, but this is out of date that you could use if you really needed to know if/when your app is online.
            https://codereview.qt-project.org/c/qt/qtbase/+/235844

            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 Reply Quote 2
            • First post
              Last post