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

Missing QtQuick.Controls.Styles in WebAssembly



  • I am trying to use an CircularGauge in my project.
    But the style: CircularGaugeStyle is flagged with the error "Unknown Component. (M300)".

    I locked in the folder where Qt is installed and the folder .../wasm_32/qml/QtQuick/Controls/Styles is nearly empty.

    I used the online installer to install this version of Qt. It is version 5.15.
    I also tried to compile Qt for WebAssembly by my own. But the folder with the styles is also empty.

    Can someone help me to find a solution?



  • I found a solution for this problem.

    The import in the QML file has to look like:

    import QtQuick 2.0
    import QtQuick.Controls 1.4
    import QtQuick.Controls.Styles 1.4
    

    My mistake was to import the QtQuick.Controls 2.x

    I also had to delete the build folder and build it from scratch.


Log in to reply