Not sure of your use case, but if you have a large byte array "realtime" becomes difficult with larger amounts of data.
If doing a spectrum analyzer, or a chart, you'd have to update the indivial x axis values seperatey as they become available.
Can you break the data into smaller peices and update incrementally?
If you need real-realtime maybe a memory mapped buffer is the way?
Sent: Friday, October 16, 2020 at 3:31 AM
From: "許友綸" <tim37...@gmail.com>
To: pyside@qt-project.org
Subject: [PySide] QByteArray.fromRawData from bytearray/numpy
From: "許友綸" <tim37...@gmail.com>
To: pyside@qt-project.org
Subject: [PySide] QByteArray.fromRawData from bytearray/numpy
hi, QByteArray consturctor can take both bytes and bytearray as its argument
_______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pysideThe 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
_______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside