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