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. Missing QtQuick.Controls.Styles in WebAssembly
Forum Updated to NodeBB v4.3 + New Features

Missing QtQuick.Controls.Styles in WebAssembly

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 1 Posters 922 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.
  • D Offline
    D Offline
    Dr.Stealth
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dr.Stealth
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

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