use QByteArray to wrap your char buffer. QByteArray object can be a property of a QObject-derived class. You should define a custom QObject-derived class that has a QByteArray property. and then register your class to QML engine.
↧