wasm: fix example code correct useage of toEcmaUint8Array()
Pick-to: 6.7 Change-Id: Id20ec88df500cb7209ce294fdee28e0244f1d580 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit b9ee93fa56a6313bd7d6ea9dcf479783605978b1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
88ae8785ef
commit
53c0dad37a
@ -469,7 +469,7 @@ QByteArray byteArray = QByteArray::fromEcmaUint8Array(uint8array);
|
||||
|
||||
//! [56]
|
||||
QByteArray byteArray = "test";
|
||||
emscripten::val uint8array = QByteArray::toEcmaUint8Array(byteArray);
|
||||
emscripten::val uint8array = byteArray.toEcmaUint8Array();
|
||||
//! [56]
|
||||
|
||||
//! [57]
|
||||
|
Loading…
x
Reference in New Issue
Block a user