def qbytearray_to_str(qba):
    return str(bytes(qba.toHex().data()).decode())
Convert QByteArray object to str in a way compatible with Python 2/3
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/qbytearray_to_str