Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtCore »

Classe « QByteArray »

Informations générales

Héritage

builtins.object
    Object
        QByteArray

Définition

class QByteArray(Object):

Description [extrait de QByteArray.__doc__]

QByteArray(self) -> None
QByteArray(self, arg__1: bytearray) -> None
QByteArray(self, arg__1: bytes) -> None
QByteArray(self, arg__1: bytes, size: int = -1) -> None
QByteArray(self, arg__1: Union[PySide6.QtCore.QByteArray, bytes]) -> None
QByteArray(self, size: int, c: int) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AbortOnBase64DecodingErrorsPySide6.QtCore.QByteArray.Base64Option.AbortOnBase64DecodingErrors
Base64EncodingPySide6.QtCore.QByteArray.Base64Option.Base64Encoding
Base64UrlEncodingPySide6.QtCore.QByteArray.Base64Option.Base64UrlEncoding
IgnoreBase64DecodingErrorsPySide6.QtCore.QByteArray.Base64Option.IgnoreBase64DecodingErrors
KeepTrailingEqualsPySide6.QtCore.QByteArray.Base64Option.KeepTrailingEquals
OmitTrailingEqualsPySide6.QtCore.QByteArray.Base64Option.OmitTrailingEquals

Liste des opérateurs

Signature de l'opérateur Description
__add__ __add__(self, a2: int) -> PySide6.QtCore.QByteArray [extrait de __add__.__doc__]
__delitem__(self, key) Delete self[key]. [extrait de __delitem__.__doc__]
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__getitem__(self, key) Return self[key]. [extrait de __getitem__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__iadd__ __iadd__(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> PySide6.QtCore.QByteArray [extrait de __iadd__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__radd__(self, value) Return value+self. [extrait de __radd__.__doc__]
__setitem__(self, key, value) Set self[key] to value. [extrait de __setitem__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__hash__(self) Return hash(self). [extrait de __hash__.__doc__]
__len__(self) Return len(self). [extrait de __len__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
__str__(self) -> object __str__(self) -> object [extrait de __str__.__doc__]
append append(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> PySide6.QtCore.QByteArray [extrait de append.__doc__]
at(self, i: int) -> int at(self, i: int) -> int [extrait de at.__doc__]
back(self) -> int back(self) -> int [extrait de back.__doc__]
Base64DecodingStatus
Base64Option
Base64Options
capacity(self) -> int capacity(self) -> int [extrait de capacity.__doc__]
cbegin(self) -> bytes cbegin(self) -> bytes [extrait de cbegin.__doc__]
cend(self) -> bytes cend(self) -> bytes [extrait de cend.__doc__]
chop(self, n: int) -> None chop(self, n: int) -> None [extrait de chop.__doc__]
chopped(self, len: int) -> PySide6.QtCore.QByteArray chopped(self, len: int) -> PySide6.QtCore.QByteArray [extrait de chopped.__doc__]
clear(self) -> None clear(self) -> None [extrait de clear.__doc__]
compare(self, a: Union[PySide6.QtCore.QByteArray, bytes], cs: PySide6.QtCore.Qt.CaseSensitivity = PySide6.QtCore.Qt.CaseSensitivity.CaseSensitive) -> int compare(self, a: Union[PySide6.QtCore.QByteArray, bytes], cs: PySide6.QtCore.Qt.CaseSensitivity = PySide6.QtCore.Qt.CaseSensitivity.CaseSensitive) -> int [extrait de compare.__doc__]
contains contains(self, bv: Union[PySide6.QtCore.QByteArray, bytes]) -> bool [extrait de contains.__doc__]
count count(self) -> int [extrait de count.__doc__]
data(self) -> bytes data(self) -> bytes [extrait de data.__doc__]
endsWith endsWith(self, bv: Union[PySide6.QtCore.QByteArray, bytes]) -> bool [extrait de endsWith.__doc__]
erase(self, first: bytes, last: bytes) -> bytes erase(self, first: bytes, last: bytes) -> bytes [extrait de erase.__doc__]
fill(self, c: int, size: int = -1) -> PySide6.QtCore.QByteArray fill(self, c: int, size: int = -1) -> PySide6.QtCore.QByteArray [extrait de fill.__doc__]
first(self, n: int) -> PySide6.QtCore.QByteArray first(self, n: int) -> PySide6.QtCore.QByteArray [extrait de first.__doc__]
fromBase64(base64: Union[PySide6.QtCore.QByteArray, bytes], options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray fromBase64(base64: Union[PySide6.QtCore.QByteArray, bytes], options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray [extrait de fromBase64.__doc__]
fromBase64Encoding(base64: Union[PySide6.QtCore.QByteArray, bytes], options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray.FromBase64Result fromBase64Encoding(base64: Union[PySide6.QtCore.QByteArray, bytes], options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray.FromBase64Result [extrait de fromBase64Encoding.__doc__]
FromBase64Result FromBase64Result(self) -> None [extrait de FromBase64Result.__doc__]
fromHex(hexEncoded: Union[PySide6.QtCore.QByteArray, bytes]) -> PySide6.QtCore.QByteArray fromHex(hexEncoded: Union[PySide6.QtCore.QByteArray, bytes]) -> PySide6.QtCore.QByteArray [extrait de fromHex.__doc__]
fromPercentEncoding(pctEncoded: Union[PySide6.QtCore.QByteArray, bytes], percent: int = '%') -> PySide6.QtCore.QByteArray fromPercentEncoding(pctEncoded: Union[PySide6.QtCore.QByteArray, bytes], percent: int = '%') -> PySide6.QtCore.QByteArray [extrait de fromPercentEncoding.__doc__]
fromRawData(data: bytes, size: int) -> PySide6.QtCore.QByteArray fromRawData(data: bytes, size: int) -> PySide6.QtCore.QByteArray [extrait de fromRawData.__doc__]
front(self) -> int front(self) -> int [extrait de front.__doc__]
indexOf indexOf(self, bv: Union[PySide6.QtCore.QByteArray, bytes], from_: int = 0) -> int [extrait de indexOf.__doc__]
insert insert(self, i: int, c: int) -> PySide6.QtCore.QByteArray [extrait de insert.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isLower(self) -> bool isLower(self) -> bool [extrait de isLower.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isSharedWith(self, other: Union[PySide6.QtCore.QByteArray, bytes]) -> bool isSharedWith(self, other: Union[PySide6.QtCore.QByteArray, bytes]) -> bool [extrait de isSharedWith.__doc__]
isUpper(self) -> bool isUpper(self) -> bool [extrait de isUpper.__doc__]
last(self, n: int) -> PySide6.QtCore.QByteArray last(self, n: int) -> PySide6.QtCore.QByteArray [extrait de last.__doc__]
lastIndexOf lastIndexOf(self, bv: Union[PySide6.QtCore.QByteArray, bytes]) -> int [extrait de lastIndexOf.__doc__]
left(self, len: int) -> PySide6.QtCore.QByteArray left(self, len: int) -> PySide6.QtCore.QByteArray [extrait de left.__doc__]
leftJustified(self, width: int, fill: int = ' ', truncate: bool = False) -> PySide6.QtCore.QByteArray leftJustified(self, width: int, fill: int = ' ', truncate: bool = False) -> PySide6.QtCore.QByteArray [extrait de leftJustified.__doc__]
length(self) -> int length(self) -> int [extrait de length.__doc__]
mid(self, index: int, len: int = -1) -> PySide6.QtCore.QByteArray mid(self, index: int, len: int = -1) -> PySide6.QtCore.QByteArray [extrait de mid.__doc__]
number number(arg__1: float, format: int = 'g', precision: int = 6) -> PySide6.QtCore.QByteArray [extrait de number.__doc__]
prepend prepend(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> PySide6.QtCore.QByteArray [extrait de prepend.__doc__]
push_back(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> None push_back(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> None [extrait de push_back.__doc__]
push_front(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> None push_front(self, a: Union[PySide6.QtCore.QByteArray, bytes]) -> None [extrait de push_front.__doc__]
remove(self, index: int, len: int) -> PySide6.QtCore.QByteArray remove(self, index: int, len: int) -> PySide6.QtCore.QByteArray [extrait de remove.__doc__]
repeated(self, times: int) -> PySide6.QtCore.QByteArray repeated(self, times: int) -> PySide6.QtCore.QByteArray [extrait de repeated.__doc__]
replace replace(self, before: bytes, bsize: int, after: bytes, asize: int) -> PySide6.QtCore.QByteArray [extrait de replace.__doc__]
reserve(self, size: int) -> None reserve(self, size: int) -> None [extrait de reserve.__doc__]
resize(self, size: int) -> None resize(self, size: int) -> None [extrait de resize.__doc__]
right(self, len: int) -> PySide6.QtCore.QByteArray right(self, len: int) -> PySide6.QtCore.QByteArray [extrait de right.__doc__]
rightJustified(self, width: int, fill: int = ' ', truncate: bool = False) -> PySide6.QtCore.QByteArray rightJustified(self, width: int, fill: int = ' ', truncate: bool = False) -> PySide6.QtCore.QByteArray [extrait de rightJustified.__doc__]
setNum setNum(self, arg__1: float, format: int = 'g', precision: int = 6) -> PySide6.QtCore.QByteArray [extrait de setNum.__doc__]
setRawData(self, a: bytes, n: int) -> PySide6.QtCore.QByteArray setRawData(self, a: bytes, n: int) -> PySide6.QtCore.QByteArray [extrait de setRawData.__doc__]
shrink_to_fit(self) -> None shrink_to_fit(self) -> None [extrait de shrink_to_fit.__doc__]
simplified(self) -> PySide6.QtCore.QByteArray simplified(self) -> PySide6.QtCore.QByteArray [extrait de simplified.__doc__]
size(self) -> int size(self) -> int [extrait de size.__doc__]
sliced sliced(self, pos: int) -> PySide6.QtCore.QByteArray [extrait de sliced.__doc__]
split(self, sep: int) -> List[PySide6.QtCore.QByteArray] split(self, sep: int) -> List[PySide6.QtCore.QByteArray] [extrait de split.__doc__]
squeeze(self) -> None squeeze(self) -> None [extrait de squeeze.__doc__]
startsWith startsWith(self, bv: Union[PySide6.QtCore.QByteArray, bytes]) -> bool [extrait de startsWith.__doc__]
swap(self, other: Union[PySide6.QtCore.QByteArray, bytes]) -> None swap(self, other: Union[PySide6.QtCore.QByteArray, bytes]) -> None [extrait de swap.__doc__]
toBase64(self, options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray toBase64(self, options: PySide6.QtCore.QByteArray.Base64Options = PySide6.QtCore.QByteArray.Base64Option.Base64Encoding) -> PySide6.QtCore.QByteArray [extrait de toBase64.__doc__]
toDouble(self) -> Tuple[float, bool] toDouble(self) -> Tuple[float, bool] [extrait de toDouble.__doc__]
toFloat(self) -> Tuple[float, bool] toFloat(self) -> Tuple[float, bool] [extrait de toFloat.__doc__]
toHex(self, separator: int = '\x00') -> PySide6.QtCore.QByteArray toHex(self, separator: int = '\x00') -> PySide6.QtCore.QByteArray [extrait de toHex.__doc__]
toInt(self, base: int = 10) -> Tuple[int, bool] toInt(self, base: int = 10) -> Tuple[int, bool] [extrait de toInt.__doc__]
toLong(self, base: int = 10) -> Tuple[int, bool] toLong(self, base: int = 10) -> Tuple[int, bool] [extrait de toLong.__doc__]
toLongLong(self, base: int = 10) -> Tuple[int, bool] toLongLong(self, base: int = 10) -> Tuple[int, bool] [extrait de toLongLong.__doc__]
toLower(self) -> PySide6.QtCore.QByteArray toLower(self) -> PySide6.QtCore.QByteArray [extrait de toLower.__doc__]
toPercentEncoding(self, exclude: Union[PySide6.QtCore.QByteArray, bytes] = Default(QByteArray), include: Union[PySide6.QtCore.QByteArray, bytes] = Default(QByteArray), percent: int = '%') -> PySide6.QtCore.QByteArray toPercentEncoding(self, exclude: Union[PySide6.QtCore.QByteArray, bytes] = Default(QByteArray), include: Union[PySide6.QtCore.QByteArray, bytes] = Default(QByteArray), percent: int = '%') -> PySide6.QtCore.QByteArray [extrait de toPercentEncoding.__doc__]
toShort(self, base: int = 10) -> Tuple[int, bool] toShort(self, base: int = 10) -> Tuple[int, bool] [extrait de toShort.__doc__]
toUInt(self, base: int = 10) -> Tuple[int, bool] toUInt(self, base: int = 10) -> Tuple[int, bool] [extrait de toUInt.__doc__]
toULong(self, base: int = 10) -> Tuple[int, bool] toULong(self, base: int = 10) -> Tuple[int, bool] [extrait de toULong.__doc__]
toULongLong(self, base: int = 10) -> Tuple[int, bool] toULongLong(self, base: int = 10) -> Tuple[int, bool] [extrait de toULongLong.__doc__]
toUpper(self) -> PySide6.QtCore.QByteArray toUpper(self) -> PySide6.QtCore.QByteArray [extrait de toUpper.__doc__]
toUShort(self, base: int = 10) -> Tuple[int, bool] toUShort(self, base: int = 10) -> Tuple[int, bool] [extrait de toUShort.__doc__]
trimmed(self) -> PySide6.QtCore.QByteArray trimmed(self) -> PySide6.QtCore.QByteArray [extrait de trimmed.__doc__]
truncate(self, pos: int) -> None truncate(self, pos: int) -> None [extrait de truncate.__doc__]

Méthodes héritées de la classe Object

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __reduce_ex__, __sizeof__