Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QNetworkConfigurationManager QSharedMemory unknown



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



  • @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?



  • 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
    "



  • 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


Log in to reply