Uploaded image for project: 'Qt Extensions'
  1. Qt Extensions
  2. QTEXT-4

Qt for WebAssembly: module "QtQuick.TreeView" is not installed(QML Treeview,Qt Quick Controls 2)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5
    • TreeView
    • None
    • Windows 10, Qt 5.15.2(MSVC 2019, 64 bit), Qt Creator 4.15.0, qmake
    • WebAssembly

      A WebAssembly project with imported QQC2 Treeview(QtQuick.TreeView 2.15)  module  throws the following error in the browser console :

      qrc:/main.qml:36: Error: Qt.createQmlObject(): failed to create object: qtloader.js:382:25
      qrc:/inline:1:1: Type Delegate unavailable qtloader.js:382:25
      qrc:/Delegate.qml:4:1: module "QtQuick.TreeView" is not installed  

      The same project runs fine with Desktop kits-  tested with  MinGW 32 and 64 bit kits.

      Example projects without the TreeView module seem to run fine as well.

      Qt for Webassembly and Emscripten compiler are configured according to the official documentation - https://doc.qt.io/qt-5/wasm.html

      A way to reproduce:

      1)Since QQC2 TreeView is an extension, it needs to be installed according to the instructions in its repository - https://code.qt.io/cgit/qt-extensions/qttreeview.git/

      2)Configure Qt for WebAssembly according to official documentation - https://doc.qt.io/qt-5/wasm.html and https://doc.qt.io/qtcreator/creator-setup-webassembly.html

      3)Try to run a new project with imported QtQuick.TreeView 2.15 and WebAssembly build configuration

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            richard Richard Moe Gustavsen
            roining roi ning
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes