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.QtWidgets »

Classe « QListWidgetItem »

Informations générales

Héritage

builtins.object
    Object
        QListWidgetItem

Définition

class QListWidgetItem(Object):

Description [extrait de QListWidgetItem.__doc__]

QListWidgetItem(self, icon: PySide2.QtGui.QIcon, text: str, listview: typing.Union[PySide2.QtWidgets.QListWidget, NoneType] = None, type: int = PySide2.QtWidgets.QListWidgetItem.ItemType.Type)
QListWidgetItem(self, listview: typing.Union[PySide2.QtWidgets.QListWidget, NoneType] = None, type: int = PySide2.QtWidgets.QListWidgetItem.ItemType.Type)
QListWidgetItem(self, other: PySide2.QtWidgets.QListWidgetItem)
QListWidgetItem(self, text: str, listview: typing.Union[PySide2.QtWidgets.QListWidget, NoneType] = None, type: int = PySide2.QtWidgets.QListWidgetItem.ItemType.Type)

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
TypePySide2.QtWidgets.QListWidgetItem.ItemType.Type
UserTypePySide2.QtWidgets.QListWidgetItem.ItemType.UserType

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__]
__lshift__(self, out: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, out: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, in_: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, in_: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__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
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
background(self) -> PySide2.QtGui.QBrush background(self) -> PySide2.QtGui.QBrush [extrait de background.__doc__]
backgroundColor(self) -> PySide2.QtGui.QColor backgroundColor(self) -> PySide2.QtGui.QColor [extrait de backgroundColor.__doc__]
checkState(self) -> PySide2.QtCore.Qt.CheckState checkState(self) -> PySide2.QtCore.Qt.CheckState [extrait de checkState.__doc__]
clone(self) -> PySide2.QtWidgets.QListWidgetItem clone(self) -> PySide2.QtWidgets.QListWidgetItem [extrait de clone.__doc__]
data(self, role: int) -> typing.Any data(self, role: int) -> typing.Any [extrait de data.__doc__]
flags(self) -> PySide2.QtCore.Qt.ItemFlags flags(self) -> PySide2.QtCore.Qt.ItemFlags [extrait de flags.__doc__]
font(self) -> PySide2.QtGui.QFont font(self) -> PySide2.QtGui.QFont [extrait de font.__doc__]
foreground(self) -> PySide2.QtGui.QBrush foreground(self) -> PySide2.QtGui.QBrush [extrait de foreground.__doc__]
icon(self) -> PySide2.QtGui.QIcon icon(self) -> PySide2.QtGui.QIcon [extrait de icon.__doc__]
isHidden(self) -> bool isHidden(self) -> bool [extrait de isHidden.__doc__]
isSelected(self) -> bool isSelected(self) -> bool [extrait de isSelected.__doc__]
ItemType
listWidget(self) -> PySide2.QtWidgets.QListWidget listWidget(self) -> PySide2.QtWidgets.QListWidget [extrait de listWidget.__doc__]
read(self, in_: PySide2.QtCore.QDataStream) read(self, in_: PySide2.QtCore.QDataStream) [extrait de read.__doc__]
setBackground(self, brush: PySide2.QtGui.QBrush) setBackground(self, brush: PySide2.QtGui.QBrush) [extrait de setBackground.__doc__]
setBackgroundColor(self, color: PySide2.QtGui.QColor) setBackgroundColor(self, color: PySide2.QtGui.QColor) [extrait de setBackgroundColor.__doc__]
setCheckState(self, state: PySide2.QtCore.Qt.CheckState) setCheckState(self, state: PySide2.QtCore.Qt.CheckState) [extrait de setCheckState.__doc__]
setData(self, role: int, value: typing.Any) setData(self, role: int, value: typing.Any) [extrait de setData.__doc__]
setFlags(self, flags: PySide2.QtCore.Qt.ItemFlags) setFlags(self, flags: PySide2.QtCore.Qt.ItemFlags) [extrait de setFlags.__doc__]
setFont(self, font: PySide2.QtGui.QFont) setFont(self, font: PySide2.QtGui.QFont) [extrait de setFont.__doc__]
setForeground(self, brush: PySide2.QtGui.QBrush) setForeground(self, brush: PySide2.QtGui.QBrush) [extrait de setForeground.__doc__]
setHidden(self, hide: bool) setHidden(self, hide: bool) [extrait de setHidden.__doc__]
setIcon(self, icon: PySide2.QtGui.QIcon) setIcon(self, icon: PySide2.QtGui.QIcon) [extrait de setIcon.__doc__]
setSelected(self, select: bool) setSelected(self, select: bool) [extrait de setSelected.__doc__]
setSizeHint(self, size: PySide2.QtCore.QSize) setSizeHint(self, size: PySide2.QtCore.QSize) [extrait de setSizeHint.__doc__]
setStatusTip(self, statusTip: str) setStatusTip(self, statusTip: str) [extrait de setStatusTip.__doc__]
setText(self, text: str) setText(self, text: str) [extrait de setText.__doc__]
setTextAlignment(self, alignment: int) setTextAlignment(self, alignment: int) [extrait de setTextAlignment.__doc__]
setTextColor(self, color: PySide2.QtGui.QColor) setTextColor(self, color: PySide2.QtGui.QColor) [extrait de setTextColor.__doc__]
setToolTip(self, toolTip: str) setToolTip(self, toolTip: str) [extrait de setToolTip.__doc__]
setWhatsThis(self, whatsThis: str) setWhatsThis(self, whatsThis: str) [extrait de setWhatsThis.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
statusTip(self) -> str statusTip(self) -> str [extrait de statusTip.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
textAlignment(self) -> int textAlignment(self) -> int [extrait de textAlignment.__doc__]
textColor(self) -> PySide2.QtGui.QColor textColor(self) -> PySide2.QtGui.QColor [extrait de textColor.__doc__]
toolTip(self) -> str toolTip(self) -> str [extrait de toolTip.__doc__]
type(self) -> int type(self) -> int [extrait de type.__doc__]
whatsThis(self) -> str whatsThis(self) -> str [extrait de whatsThis.__doc__]
write(self, out: PySide2.QtCore.QDataStream) write(self, out: PySide2.QtCore.QDataStream) [extrait de write.__doc__]

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

__init_subclass__, __subclasshook__

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

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__