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 « PySide2.QtCore »

Classe « QJsonValue »

Informations générales

Héritage

builtins.object
    Object
        QJsonValue

Définition

class QJsonValue(Object):

Description [extrait de QJsonValue.__doc__]

QJsonValue(self, a: PySide2.QtCore.QJsonArray)
QJsonValue(self, arg__1: PySide2.QtCore.QJsonValue.Type = PySide2.QtCore.QJsonValue.Type.Null)
QJsonValue(self, b: bool)
QJsonValue(self, n: float)
QJsonValue(self, n: int)
QJsonValue(self, n: int)
QJsonValue(self, o: typing.Dict[str, PySide2.QtCore.QJsonValue])
QJsonValue(self, other: PySide2.QtCore.QJsonValue)
QJsonValue(self, s: str)
QJsonValue(self, s: bytes)

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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
ArrayPySide2.QtCore.QJsonValue.Type.Array
BoolPySide2.QtCore.QJsonValue.Type.Bool
DoublePySide2.QtCore.QJsonValue.Type.Double
NullPySide2.QtCore.QJsonValue.Type.Null
ObjectPySide2.QtCore.QJsonValue.Type.Object
StringPySide2.QtCore.QJsonValue.Type.String
UndefinedPySide2.QtCore.QJsonValue.Type.Undefined

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__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__]

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__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
fromVariant(variant: typing.Any) -> PySide2.QtCore.QJsonValue fromVariant(variant: typing.Any) -> PySide2.QtCore.QJsonValue [extrait de fromVariant.__doc__]
isArray(self) -> bool isArray(self) -> bool [extrait de isArray.__doc__]
isBool(self) -> bool isBool(self) -> bool [extrait de isBool.__doc__]
isDouble(self) -> bool isDouble(self) -> bool [extrait de isDouble.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isObject(self) -> bool isObject(self) -> bool [extrait de isObject.__doc__]
isString(self) -> bool isString(self) -> bool [extrait de isString.__doc__]
isUndefined(self) -> bool isUndefined(self) -> bool [extrait de isUndefined.__doc__]
swap(self, other: PySide2.QtCore.QJsonValue) swap(self, other: PySide2.QtCore.QJsonValue) [extrait de swap.__doc__]
toArray toArray(self) -> PySide2.QtCore.QJsonArray [extrait de toArray.__doc__]
toBool(self, defaultValue: bool = False) -> bool toBool(self, defaultValue: bool = False) -> bool [extrait de toBool.__doc__]
toDouble(self, defaultValue: float = 0) -> float toDouble(self, defaultValue: float = 0) -> float [extrait de toDouble.__doc__]
toInt(self, defaultValue: int = 0) -> int toInt(self, defaultValue: int = 0) -> int [extrait de toInt.__doc__]
toObject toObject(self) -> typing.Dict[str, PySide2.QtCore.QJsonValue] [extrait de toObject.__doc__]
toString toString(self) -> str [extrait de toString.__doc__]
toVariant(self) -> typing.Any toVariant(self) -> typing.Any [extrait de toVariant.__doc__]
Type
type(self) -> PySide2.QtCore.QJsonValue.Type type(self) -> PySide2.QtCore.QJsonValue.Type [extrait de type.__doc__]

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

__init_subclass__, __subclasshook__

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

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__