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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes