[PyQt] Bug when PyQt5 sends Python bytes object via signal between threads
Baz Walter
bazwal at ftml.net
Thu Dec 1 18:41:37 GMT 2016
On 01/12/16 09:38, Rudolf Cardinal wrote:
> My current workaround is to switch from "bytes" to "str" as a parameter
FWIW, the script works okay with bytearray instead of bytes.
That is:
SOURCE_BYTES_FOR_TEMP = bytearray(b"gh ij kl")
class Sender(QObject):
send_bytes = pyqtSignal(bytearray)
class Receiver(QObject):
@pyqtSlot(bytearray)
def on_bytes(self, data: bytearray) -> None:
--
Regards
Baz Walter
More information about the PyQt
mailing list