Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.4.0 Beta2
-
None
-
-
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
- relates to
-
QTBUG-104117 Port the qtloader.js to typescript
- Closed
For Gerrit Dashboard: QTBUG-105264 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
424606,2 | Use the correct module exports in qtloader | dev | qt/qtbase | Status: MERGED | +2 | 0 |
426390,3 | Use the correct module exports in qtloader | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |