if I have
signal: void foo(QByteArray data);
And in QML I process it:
onFoo: { console.log(data.toString()); }
What is the data type in QML? What are his methods? This doesn't seem to be a javascript string - it doesn't even have .length , and not .charCodeAt() . But it also doesn't look like QByteArray - no .at() . data[0] undefined ! It has .toString() .
How do I access its contents? For instance. if it's a four-byte uint32_t, how do I get that number in a javascript variable?
source share