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. QNetworkConfigurationManager QSharedMemory unknown
QtWS25 Last Chance

QNetworkConfigurationManager QSharedMemory unknown

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
4 Posts 3 Posters 628 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.
  • niqtN Offline
    niqtN Offline
    niqt
    wrote on last edited by
    #1

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

    JonBJ 1 Reply Last reply
    0
    • niqtN niqt

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

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @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
      1
      • niqtN Offline
        niqtN Offline
        niqt
        wrote on last edited by
        #3

        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
        0
        • lorn.potterL Offline
          lorn.potterL Offline
          lorn.potter
          wrote on last edited by
          #4

          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
          2

          • Login

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