[PySide] QByteArray.fromRawData from bytearray/numpy

許友綸 tim37021 at gmail.com
Fri Oct 16 09:31:47 CEST 2020


hi, QByteArray consturctor can take both bytes and bytearray as its argument
The docs says it makes its own copy. I want a python buffer(numpy) changing
in real-time to be plotted/processed in QML.

However, fromRawData only takes bytes which is immutable type! Wish it can
also be able to pass other buffer protocol types.

appreciate your help, thank you

-Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20201016/2d6c6ea6/attachment.html>


More information about the PySide mailing list