40 return QByteArray.fromBase64(string.encode(
"utf-8"))
46 return bytes.toBase64().data().decode(
"utf-8")
def str_to_bytes
This is required to save Qt byte arrays into a base64 string (to save screen preferences) ...
def bytes_to_str
This is required to load base64 Qt byte array strings into a Qt byte array (to load screen preference...