Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105264

Uncaught TypeError: self.module.qtAddCanvasElement is not a function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4.0 RC1, 6.5.0 Beta1
    • 6.4.0 Beta2
    • QPA
    • None
    • WebAssembly
    • b7802b401f (qt/qtbase/dev) b7802b401f (qt/tqtc-qtbase/dev) 4db3a15803 (qt/qtbase/6.4) 4db3a15803 (qt/tqtc-qtbase/6.4)

    Description

      Maybe I am mistaken, but when trying to use WASM QtLoader object functions:

      addCanvasElement
      removeCanvasElement
      resizeCanvasElement
      setFontDpi

       
      I get something like :

      Uncaught TypeError: self.module.qtAddCanvasElement is not a function errors

      Maybe there is a bad mapping to the binded function between the qtloader.js and qwasmintegration.cpp implementation?

      qtAddCanvasElement(element) -> qtAddContainerElement
      qtRemoveCanvasElement(element) -> qtRemoveContainerElement
      qtResizeCanvasElement(element) -> qtResizeContainerElement
      qtSetFontDpi -> qtUpdateDpi

      If I change the call:

      qtLoader.addCanvasElement

      to

      qtLoader.module().qtAddContainerElement

      Then it works.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-105264
          # Subject Branch Project Status CR V

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              erict Eric
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes