PythonQt.QtCore.QTextEncoder · declarations 001
Back to PythonQt.QtCore.QTextEncoder
fromUnicode
fromUnicode(str: str) -> Any
X.fromUnicode(str) -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
QByteArray QTextEncoder::fromUnicode(const QString \&str)
Converts the Unicode string str into an encoded QByteArray.
QByteArray QTextEncoder::fromUnicode(QStringView str)
This is an overloaded function.
Converts the Unicode string str into an encoded QByteArray.
This function was introduced in Qt 5.10.
QByteArray QTextEncoder::fromUnicode(const QChar *uc, int len)
This is an overloaded function.
Converts len characters (not bytes) from uc, and returns the result in a QByteArray.
Upstream PySide2 reference signatures (binding differences may apply):
fromUnicode(self, str: str) -> PySide2.QtCore.QByteArray
Source: https://doc.qt.io/archives/qt-5.15/qtextencoder.html#fromUnicode
hasFailure
hasFailure() -> bool
X.hasFailure() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
hasFailure(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtextencoder.html#hasFailure