[Interest] Signals with QByteArray do not work in QML?

Jason H jhihn at gmx.com
Thu Oct 11 16:27:45 CEST 2018

So originally, QByteArray was not supported in QML. Then this happened in 5.8: http://doc.qt.io/qt-5/qtqml-cppintegration-data.html#qbytearray-to-javascript-arraybuffer

So naturally I tried to emit newData(QByteArray data), but this was not caught by my connections:

Connection {
    target: shim
    onNewData: {

I then tested this with having my slot handleNewData(QByteArray data) emit an additional signal hasNewData(bool), added it to the connections, and I was able to get it to work.

Is this a bug or am I trying to do eomething known to be wrong?

More information about the Interest mailing list