builtins.object Object QPaintDevice builtins.object Object QObject QWidget QFrame QAbstractScrollArea QAbstractItemView QListView QListWidget
class QListWidget(QListView):
QListWidget(self, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
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__] |
Nom de l'attribut | Valeur |
---|---|
AboveItem | PySide2.QtWidgets.QAbstractItemView.DropIndicatorPosition.AboveItem |
Adjust | PySide2.QtWidgets.QListView.ResizeMode.Adjust |
AdjustIgnored | PySide2.QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustIgnored |
AdjustToContents | PySide2.QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustToContents |
AdjustToContentsOnFirstShow | PySide2.QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustToContentsOnFirstShow |
AllEditTriggers | PySide2.QtWidgets.QAbstractItemView.EditTrigger.AllEditTriggers |
AnimatingState | PySide2.QtWidgets.QAbstractItemView.State.AnimatingState |
AnyKeyPressed | PySide2.QtWidgets.QAbstractItemView.EditTrigger.AnyKeyPressed |
Batched | PySide2.QtWidgets.QListView.LayoutMode.Batched |
BelowItem | PySide2.QtWidgets.QAbstractItemView.DropIndicatorPosition.BelowItem |
Box | PySide2.QtWidgets.QFrame.Shape.Box |
CollapsingState | PySide2.QtWidgets.QAbstractItemView.State.CollapsingState |
ContiguousSelection | PySide2.QtWidgets.QAbstractItemView.SelectionMode.ContiguousSelection |
CurrentChanged | PySide2.QtWidgets.QAbstractItemView.EditTrigger.CurrentChanged |
DoubleClicked | PySide2.QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked |
DragDrop | PySide2.QtWidgets.QAbstractItemView.DragDropMode.DragDrop |
DraggingState | PySide2.QtWidgets.QAbstractItemView.State.DraggingState |
DragOnly | PySide2.QtWidgets.QAbstractItemView.DragDropMode.DragOnly |
DragSelectingState | PySide2.QtWidgets.QAbstractItemView.State.DragSelectingState |
DrawChildren | PySide2.QtWidgets.QWidget.RenderFlag.DrawChildren |
DrawWindowBackground | PySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground |
DropOnly | PySide2.QtWidgets.QAbstractItemView.DragDropMode.DropOnly |
EditingState | PySide2.QtWidgets.QAbstractItemView.State.EditingState |
EditKeyPressed | PySide2.QtWidgets.QAbstractItemView.EditTrigger.EditKeyPressed |
EnsureVisible | PySide2.QtWidgets.QAbstractItemView.ScrollHint.EnsureVisible |
ExpandingState | PySide2.QtWidgets.QAbstractItemView.State.ExpandingState |
ExtendedSelection | PySide2.QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection |
Fixed | PySide2.QtWidgets.QListView.ResizeMode.Fixed |
Free | PySide2.QtWidgets.QListView.Movement.Free |
HLine | PySide2.QtWidgets.QFrame.Shape.HLine |
IconMode | PySide2.QtWidgets.QListView.ViewMode.IconMode |
IgnoreMask | PySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask |
InternalMove | PySide2.QtWidgets.QAbstractItemView.DragDropMode.InternalMove |
LeftToRight | PySide2.QtWidgets.QListView.Flow.LeftToRight |
ListMode | PySide2.QtWidgets.QListView.ViewMode.ListMode |
MoveDown | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveDown |
MoveEnd | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveEnd |
MoveHome | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveHome |
MoveLeft | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveLeft |
MoveNext | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveNext |
MovePageDown | PySide2.QtWidgets.QAbstractItemView.CursorAction.MovePageDown |
MovePageUp | PySide2.QtWidgets.QAbstractItemView.CursorAction.MovePageUp |
MovePrevious | PySide2.QtWidgets.QAbstractItemView.CursorAction.MovePrevious |
MoveRight | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveRight |
MoveUp | PySide2.QtWidgets.QAbstractItemView.CursorAction.MoveUp |
MultiSelection | PySide2.QtWidgets.QAbstractItemView.SelectionMode.MultiSelection |
NoDragDrop | PySide2.QtWidgets.QAbstractItemView.DragDropMode.NoDragDrop |
NoEditTriggers | PySide2.QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers |
NoFrame | PySide2.QtWidgets.QFrame.Shape.NoFrame |
NoSelection | PySide2.QtWidgets.QAbstractItemView.SelectionMode.NoSelection |
NoState | PySide2.QtWidgets.QAbstractItemView.State.NoState |
OnItem | PySide2.QtWidgets.QAbstractItemView.DropIndicatorPosition.OnItem |
OnViewport | PySide2.QtWidgets.QAbstractItemView.DropIndicatorPosition.OnViewport |
Panel | PySide2.QtWidgets.QFrame.Shape.Panel |
PdmDepth | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth |
PdmDevicePixelRatio | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio |
PdmDevicePixelRatioScaled | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled |
PdmDpiX | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX |
PdmDpiY | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY |
PdmHeight | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight |
PdmHeightMM | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM |
PdmNumColors | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors |
PdmPhysicalDpiX | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX |
PdmPhysicalDpiY | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY |
PdmWidth | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth |
PdmWidthMM | PySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM |
Plain | PySide2.QtWidgets.QFrame.Shadow.Plain |
PositionAtBottom | PySide2.QtWidgets.QAbstractItemView.ScrollHint.PositionAtBottom |
PositionAtCenter | PySide2.QtWidgets.QAbstractItemView.ScrollHint.PositionAtCenter |
PositionAtTop | PySide2.QtWidgets.QAbstractItemView.ScrollHint.PositionAtTop |
Raised | PySide2.QtWidgets.QFrame.Shadow.Raised |
ScrollPerItem | PySide2.QtWidgets.QAbstractItemView.ScrollMode.ScrollPerItem |
ScrollPerPixel | PySide2.QtWidgets.QAbstractItemView.ScrollMode.ScrollPerPixel |
SelectColumns | PySide2.QtWidgets.QAbstractItemView.SelectionBehavior.SelectColumns |
SelectedClicked | PySide2.QtWidgets.QAbstractItemView.EditTrigger.SelectedClicked |
SelectItems | PySide2.QtWidgets.QAbstractItemView.SelectionBehavior.SelectItems |
SelectRows | PySide2.QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows |
Shadow_Mask | PySide2.QtWidgets.QFrame.StyleMask.Shadow_Mask |
Shape_Mask | PySide2.QtWidgets.QFrame.StyleMask.Shape_Mask |
SinglePass | PySide2.QtWidgets.QListView.LayoutMode.SinglePass |
SingleSelection | PySide2.QtWidgets.QAbstractItemView.SelectionMode.SingleSelection |
Snap | PySide2.QtWidgets.QListView.Movement.Snap |
Static | PySide2.QtWidgets.QListView.Movement.Static |
staticMetaObject | <PySide2.QtCore.QMetaObject object at 0x7efe35985b80> |
StyledPanel | PySide2.QtWidgets.QFrame.Shape.StyledPanel |
Sunken | PySide2.QtWidgets.QFrame.Shadow.Sunken |
TopToBottom | PySide2.QtWidgets.QListView.Flow.TopToBottom |
VLine | PySide2.QtWidgets.QFrame.Shape.VLine |
WinPanel | PySide2.QtWidgets.QFrame.Shape.WinPanel |
Signature de la méthode | Description |
---|---|
__delattr__(self, name) | Implement delattr(self, name). [extrait de __delattr__.__doc__] |
__setattr__(self, name, value) | Implement setattr(self, name, value). [extrait de __setattr__.__doc__] |
activated | |
addItem | addItem(self, item: PySide2.QtWidgets.QListWidgetItem) [extrait de addItem.__doc__] |
addItems(self, labels: typing.Sequence[str]) | addItems(self, labels: typing.Sequence[str]) [extrait de addItems.__doc__] |
clear(self) | clear(self) [extrait de clear.__doc__] |
clicked | |
closePersistentEditor | closePersistentEditor(self, index: PySide2.QtCore.QModelIndex) [extrait de closePersistentEditor.__doc__] |
count(self) -> int | count(self) -> int [extrait de count.__doc__] |
currentItem(self) -> PySide2.QtWidgets.QListWidgetItem | currentItem(self) -> PySide2.QtWidgets.QListWidgetItem [extrait de currentItem.__doc__] |
currentItemChanged | |
currentRow(self) -> int | currentRow(self) -> int [extrait de currentRow.__doc__] |
currentRowChanged | |
currentTextChanged | |
customContextMenuRequested | |
destroyed | |
doubleClicked | |
dropEvent(self, event: PySide2.QtGui.QDropEvent) | dropEvent(self, event: PySide2.QtGui.QDropEvent) [extrait de dropEvent.__doc__] |
dropMimeData(self, index: int, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction) -> bool | dropMimeData(self, index: int, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction) -> bool [extrait de dropMimeData.__doc__] |
editItem(self, item: PySide2.QtWidgets.QListWidgetItem) | editItem(self, item: PySide2.QtWidgets.QListWidgetItem) [extrait de editItem.__doc__] |
entered | |
event(self, e: PySide2.QtCore.QEvent) -> bool | event(self, e: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__] |
findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags) -> typing.List[PySide2.QtWidgets.QListWidgetItem] | findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags) -> typing.List[PySide2.QtWidgets.QListWidgetItem] [extrait de findItems.__doc__] |
iconSizeChanged | |
indexesMoved | |
indexFromItem(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtCore.QModelIndex | indexFromItem(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtCore.QModelIndex [extrait de indexFromItem.__doc__] |
insertItem | insertItem(self, row: int, item: PySide2.QtWidgets.QListWidgetItem) [extrait de insertItem.__doc__] |
insertItems(self, row: int, labels: typing.Sequence[str]) | insertItems(self, row: int, labels: typing.Sequence[str]) [extrait de insertItems.__doc__] |
isItemHidden(self, item: PySide2.QtWidgets.QListWidgetItem) -> bool | isItemHidden(self, item: PySide2.QtWidgets.QListWidgetItem) -> bool [extrait de isItemHidden.__doc__] |
isItemSelected(self, item: PySide2.QtWidgets.QListWidgetItem) -> bool | isItemSelected(self, item: PySide2.QtWidgets.QListWidgetItem) -> bool [extrait de isItemSelected.__doc__] |
isPersistentEditorOpen | isPersistentEditorOpen(self, index: PySide2.QtCore.QModelIndex) -> bool [extrait de isPersistentEditorOpen.__doc__] |
isSortingEnabled(self) -> bool | isSortingEnabled(self) -> bool [extrait de isSortingEnabled.__doc__] |
item(self, row: int) -> PySide2.QtWidgets.QListWidgetItem | item(self, row: int) -> PySide2.QtWidgets.QListWidgetItem [extrait de item.__doc__] |
itemActivated | |
itemAt | itemAt(self, p: PySide2.QtCore.QPoint) -> PySide2.QtWidgets.QListWidgetItem [extrait de itemAt.__doc__] |
itemChanged | |
itemClicked | |
itemDoubleClicked | |
itemEntered | |
itemFromIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QListWidgetItem | itemFromIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QListWidgetItem [extrait de itemFromIndex.__doc__] |
itemPressed | |
items(self, data: PySide2.QtCore.QMimeData) -> typing.List[PySide2.QtWidgets.QListWidgetItem] | items(self, data: PySide2.QtCore.QMimeData) -> typing.List[PySide2.QtWidgets.QListWidgetItem] [extrait de items.__doc__] |
itemSelectionChanged | |
itemWidget(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtWidgets.QWidget | itemWidget(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtWidgets.QWidget [extrait de itemWidget.__doc__] |
mimeData(self, items: typing.Sequence[PySide2.QtWidgets.QListWidgetItem]) -> PySide2.QtCore.QMimeData | mimeData(self, items: typing.Sequence[PySide2.QtWidgets.QListWidgetItem]) -> PySide2.QtCore.QMimeData [extrait de mimeData.__doc__] |
mimeTypes(self) -> typing.List[str] | mimeTypes(self) -> typing.List[str] [extrait de mimeTypes.__doc__] |
objectNameChanged | |
openPersistentEditor | openPersistentEditor(self, index: PySide2.QtCore.QModelIndex) [extrait de openPersistentEditor.__doc__] |
pressed | |
removeItemWidget(self, item: PySide2.QtWidgets.QListWidgetItem) | removeItemWidget(self, item: PySide2.QtWidgets.QListWidgetItem) [extrait de removeItemWidget.__doc__] |
row(self, item: PySide2.QtWidgets.QListWidgetItem) -> int | row(self, item: PySide2.QtWidgets.QListWidgetItem) -> int [extrait de row.__doc__] |
scrollToItem(self, item: PySide2.QtWidgets.QListWidgetItem, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint = PySide2.QtWidgets.QAbstractItemView.ScrollHint.EnsureVisible) | scrollToItem(self, item: PySide2.QtWidgets.QListWidgetItem, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint = PySide2.QtWidgets.QAbstractItemView.ScrollHint.EnsureVisible) [extrait de scrollToItem.__doc__] |
selectedItems(self) -> typing.List[PySide2.QtWidgets.QListWidgetItem] | selectedItems(self) -> typing.List[PySide2.QtWidgets.QListWidgetItem] [extrait de selectedItems.__doc__] |
setCurrentItem | setCurrentItem(self, item: PySide2.QtWidgets.QListWidgetItem) [extrait de setCurrentItem.__doc__] |
setCurrentRow | setCurrentRow(self, row: int) [extrait de setCurrentRow.__doc__] |
setItemHidden(self, item: PySide2.QtWidgets.QListWidgetItem, hide: bool) | setItemHidden(self, item: PySide2.QtWidgets.QListWidgetItem, hide: bool) [extrait de setItemHidden.__doc__] |
setItemSelected(self, item: PySide2.QtWidgets.QListWidgetItem, select: bool) | setItemSelected(self, item: PySide2.QtWidgets.QListWidgetItem, select: bool) [extrait de setItemSelected.__doc__] |
setItemWidget(self, item: PySide2.QtWidgets.QListWidgetItem, widget: PySide2.QtWidgets.QWidget) | setItemWidget(self, item: PySide2.QtWidgets.QListWidgetItem, widget: PySide2.QtWidgets.QWidget) [extrait de setItemWidget.__doc__] |
setModel(self, model: PySide2.QtCore.QAbstractItemModel) | setModel(self, model: PySide2.QtCore.QAbstractItemModel) [extrait de setModel.__doc__] |
setSelectionModel(self, selectionModel: PySide2.QtCore.QItemSelectionModel) | setSelectionModel(self, selectionModel: PySide2.QtCore.QItemSelectionModel) [extrait de setSelectionModel.__doc__] |
setSortingEnabled(self, enable: bool) | setSortingEnabled(self, enable: bool) [extrait de setSortingEnabled.__doc__] |
sortItems(self, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) | sortItems(self, order: PySide2.QtCore.Qt.SortOrder = PySide2.QtCore.Qt.SortOrder.AscendingOrder) [extrait de sortItems.__doc__] |
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions | supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions [extrait de supportedDropActions.__doc__] |
takeItem(self, row: int) -> PySide2.QtWidgets.QListWidgetItem | takeItem(self, row: int) -> PySide2.QtWidgets.QListWidgetItem [extrait de takeItem.__doc__] |
viewportEntered | |
visualItemRect(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtCore.QRect | visualItemRect(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtCore.QRect [extrait de visualItemRect.__doc__] |
windowIconChanged | |
windowIconTextChanged | |
windowTitleChanged |
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 :