FromBase64Result#
The FromBase64Result
class holds the result of a call to fromBase64Encoding
. More…
Synopsis#
Functions#
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
Objects of this class can be used to check whether the conversion was successful, and if so, retrieve the decoded QByteArray
. The conversion operators defined for FromBase64Result
make its usage straightforward:
def process(): if auto result = QByteArray.fromBase64Encoding(encodedData): process(result)
Alternatively, it is possible to access the conversion status and the decoded data directly:
result = QByteArray.fromBase64Encoding(encodedData) if result.decodingStatus == QByteArray.Base64DecodingStatus.Ok: process(result.decoded)See also
- class PySide6.QtCore.QByteArray.FromBase64Result#
- PySide6.QtCore.QByteArray.FromBase64Result.decoded#
- PySide6.QtCore.QByteArray.FromBase64Result.decodingStatus#
- PySide6.QtCore.QByteArray.FromBase64Result.__ne__(rhs)#
- Parameters:
- Return type:
bool
- PySide6.QtCore.QByteArray.FromBase64Result.__mul__()#
- Return type:
Returns the decoded byte array.
- PySide6.QtCore.QByteArray.FromBase64Result.__eq__(rhs)#
- Parameters:
- Return type:
bool
- PySide6.QtCore.QByteArray.FromBase64Result.swap(other)#
- Parameters: