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 « QComboBox »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QComboBox

Définition

class QComboBox(QWidget):

Description [extrait de QComboBox.__doc__]

QComboBox(self, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = 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__]
__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
AdjustToContentsPySide2.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents
AdjustToContentsOnFirstShowPySide2.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContentsOnFirstShow
AdjustToMinimumContentsLengthPySide2.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLength
AdjustToMinimumContentsLengthWithIconPySide2.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon
DrawChildrenPySide2.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask
InsertAfterCurrentPySide2.QtWidgets.QComboBox.InsertPolicy.InsertAfterCurrent
InsertAlphabeticallyPySide2.QtWidgets.QComboBox.InsertPolicy.InsertAlphabetically
InsertAtBottomPySide2.QtWidgets.QComboBox.InsertPolicy.InsertAtBottom
InsertAtCurrentPySide2.QtWidgets.QComboBox.InsertPolicy.InsertAtCurrent
InsertAtTopPySide2.QtWidgets.QComboBox.InsertPolicy.InsertAtTop
InsertBeforeCurrentPySide2.QtWidgets.QComboBox.InsertPolicy.InsertBeforeCurrent
NoInsertPySide2.QtWidgets.QComboBox.InsertPolicy.NoInsert
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe359b9dc0>

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

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__]
activated
addItem addItem(self, icon: PySide2.QtGui.QIcon, text: str, userData: typing.Any = Invalid(typing.Any)) [extrait de addItem.__doc__]
addItems(self, texts: typing.Sequence[str]) addItems(self, texts: typing.Sequence[str]) [extrait de addItems.__doc__]
autoCompletion(self) -> bool autoCompletion(self) -> bool [extrait de autoCompletion.__doc__]
autoCompletionCaseSensitivity(self) -> PySide2.QtCore.Qt.CaseSensitivity autoCompletionCaseSensitivity(self) -> PySide2.QtCore.Qt.CaseSensitivity [extrait de autoCompletionCaseSensitivity.__doc__]
changeEvent(self, e: PySide2.QtCore.QEvent) changeEvent(self, e: PySide2.QtCore.QEvent) [extrait de changeEvent.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
clearEditText(self) clearEditText(self) [extrait de clearEditText.__doc__]
completer(self) -> PySide2.QtWidgets.QCompleter completer(self) -> PySide2.QtWidgets.QCompleter [extrait de completer.__doc__]
contextMenuEvent(self, e: PySide2.QtGui.QContextMenuEvent) contextMenuEvent(self, e: PySide2.QtGui.QContextMenuEvent) [extrait de contextMenuEvent.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
currentData(self, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) -> typing.Any currentData(self, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) -> typing.Any [extrait de currentData.__doc__]
currentIndex(self) -> int currentIndex(self) -> int [extrait de currentIndex.__doc__]
currentIndexChanged
currentText(self) -> str currentText(self) -> str [extrait de currentText.__doc__]
currentTextChanged
customContextMenuRequested
destroyed
duplicatesEnabled(self) -> bool duplicatesEnabled(self) -> bool [extrait de duplicatesEnabled.__doc__]
editTextChanged
event(self, event: PySide2.QtCore.QEvent) -> bool event(self, event: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
findData(self, data: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int findData(self, data: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int [extrait de findData.__doc__]
findText(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int findText(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int [extrait de findText.__doc__]
focusInEvent(self, e: PySide2.QtGui.QFocusEvent) focusInEvent(self, e: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusOutEvent(self, e: PySide2.QtGui.QFocusEvent) focusOutEvent(self, e: PySide2.QtGui.QFocusEvent) [extrait de focusOutEvent.__doc__]
hasFrame(self) -> bool hasFrame(self) -> bool [extrait de hasFrame.__doc__]
hideEvent(self, e: PySide2.QtGui.QHideEvent) hideEvent(self, e: PySide2.QtGui.QHideEvent) [extrait de hideEvent.__doc__]
hidePopup(self) hidePopup(self) [extrait de hidePopup.__doc__]
highlighted
iconSize(self) -> PySide2.QtCore.QSize iconSize(self) -> PySide2.QtCore.QSize [extrait de iconSize.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionComboBox) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionComboBox) [extrait de initStyleOption.__doc__]
inputMethodEvent(self, arg__1: PySide2.QtGui.QInputMethodEvent) inputMethodEvent(self, arg__1: PySide2.QtGui.QInputMethodEvent) [extrait de inputMethodEvent.__doc__]
inputMethodQuery inputMethodQuery(self, arg__1: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any [extrait de inputMethodQuery.__doc__]
insertItem insertItem(self, index: int, icon: PySide2.QtGui.QIcon, text: str, userData: typing.Any = Invalid(typing.Any)) [extrait de insertItem.__doc__]
insertItems(self, index: int, texts: typing.Sequence[str]) insertItems(self, index: int, texts: typing.Sequence[str]) [extrait de insertItems.__doc__]
InsertPolicy
insertPolicy(self) -> PySide2.QtWidgets.QComboBox.InsertPolicy insertPolicy(self) -> PySide2.QtWidgets.QComboBox.InsertPolicy [extrait de insertPolicy.__doc__]
insertSeparator(self, index: int) insertSeparator(self, index: int) [extrait de insertSeparator.__doc__]
isEditable(self) -> bool isEditable(self) -> bool [extrait de isEditable.__doc__]
itemData(self, index: int, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) -> typing.Any itemData(self, index: int, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) -> typing.Any [extrait de itemData.__doc__]
itemDelegate(self) -> PySide2.QtWidgets.QAbstractItemDelegate itemDelegate(self) -> PySide2.QtWidgets.QAbstractItemDelegate [extrait de itemDelegate.__doc__]
itemIcon(self, index: int) -> PySide2.QtGui.QIcon itemIcon(self, index: int) -> PySide2.QtGui.QIcon [extrait de itemIcon.__doc__]
itemText(self, index: int) -> str itemText(self, index: int) -> str [extrait de itemText.__doc__]
keyPressEvent(self, e: PySide2.QtGui.QKeyEvent) keyPressEvent(self, e: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, e: PySide2.QtGui.QKeyEvent) keyReleaseEvent(self, e: PySide2.QtGui.QKeyEvent) [extrait de keyReleaseEvent.__doc__]
lineEdit(self) -> PySide2.QtWidgets.QLineEdit lineEdit(self) -> PySide2.QtWidgets.QLineEdit [extrait de lineEdit.__doc__]
maxCount(self) -> int maxCount(self) -> int [extrait de maxCount.__doc__]
maxVisibleItems(self) -> int maxVisibleItems(self) -> int [extrait de maxVisibleItems.__doc__]
minimumContentsLength(self) -> int minimumContentsLength(self) -> int [extrait de minimumContentsLength.__doc__]
minimumSizeHint(self) -> PySide2.QtCore.QSize minimumSizeHint(self) -> PySide2.QtCore.QSize [extrait de minimumSizeHint.__doc__]
model(self) -> PySide2.QtCore.QAbstractItemModel model(self) -> PySide2.QtCore.QAbstractItemModel [extrait de model.__doc__]
modelColumn(self) -> int modelColumn(self) -> int [extrait de modelColumn.__doc__]
mousePressEvent(self, e: PySide2.QtGui.QMouseEvent) mousePressEvent(self, e: PySide2.QtGui.QMouseEvent) [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, e: PySide2.QtGui.QMouseEvent) mouseReleaseEvent(self, e: PySide2.QtGui.QMouseEvent) [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
paintEvent(self, e: PySide2.QtGui.QPaintEvent) paintEvent(self, e: PySide2.QtGui.QPaintEvent) [extrait de paintEvent.__doc__]
removeItem(self, index: int) removeItem(self, index: int) [extrait de removeItem.__doc__]
resizeEvent(self, e: PySide2.QtGui.QResizeEvent) resizeEvent(self, e: PySide2.QtGui.QResizeEvent) [extrait de resizeEvent.__doc__]
rootModelIndex(self) -> PySide2.QtCore.QModelIndex rootModelIndex(self) -> PySide2.QtCore.QModelIndex [extrait de rootModelIndex.__doc__]
setAutoCompletion(self, enable: bool) setAutoCompletion(self, enable: bool) [extrait de setAutoCompletion.__doc__]
setAutoCompletionCaseSensitivity(self, sensitivity: PySide2.QtCore.Qt.CaseSensitivity) setAutoCompletionCaseSensitivity(self, sensitivity: PySide2.QtCore.Qt.CaseSensitivity) [extrait de setAutoCompletionCaseSensitivity.__doc__]
setCompleter(self, c: PySide2.QtWidgets.QCompleter) setCompleter(self, c: PySide2.QtWidgets.QCompleter) [extrait de setCompleter.__doc__]
setCurrentIndex(self, index: int) setCurrentIndex(self, index: int) [extrait de setCurrentIndex.__doc__]
setCurrentText(self, text: str) setCurrentText(self, text: str) [extrait de setCurrentText.__doc__]
setDuplicatesEnabled(self, enable: bool) setDuplicatesEnabled(self, enable: bool) [extrait de setDuplicatesEnabled.__doc__]
setEditable(self, editable: bool) setEditable(self, editable: bool) [extrait de setEditable.__doc__]
setEditText(self, text: str) setEditText(self, text: str) [extrait de setEditText.__doc__]
setFrame(self, arg__1: bool) setFrame(self, arg__1: bool) [extrait de setFrame.__doc__]
setIconSize(self, size: PySide2.QtCore.QSize) setIconSize(self, size: PySide2.QtCore.QSize) [extrait de setIconSize.__doc__]
setInsertPolicy(self, policy: PySide2.QtWidgets.QComboBox.InsertPolicy) setInsertPolicy(self, policy: PySide2.QtWidgets.QComboBox.InsertPolicy) [extrait de setInsertPolicy.__doc__]
setItemData(self, index: int, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) setItemData(self, index: int, value: typing.Any, role: int = PySide2.QtCore.Qt.ItemDataRole.UserRole) [extrait de setItemData.__doc__]
setItemDelegate(self, delegate: PySide2.QtWidgets.QAbstractItemDelegate) setItemDelegate(self, delegate: PySide2.QtWidgets.QAbstractItemDelegate) [extrait de setItemDelegate.__doc__]
setItemIcon(self, index: int, icon: PySide2.QtGui.QIcon) setItemIcon(self, index: int, icon: PySide2.QtGui.QIcon) [extrait de setItemIcon.__doc__]
setItemText(self, index: int, text: str) setItemText(self, index: int, text: str) [extrait de setItemText.__doc__]
setLineEdit(self, edit: PySide2.QtWidgets.QLineEdit) setLineEdit(self, edit: PySide2.QtWidgets.QLineEdit) [extrait de setLineEdit.__doc__]
setMaxCount(self, max: int) setMaxCount(self, max: int) [extrait de setMaxCount.__doc__]
setMaxVisibleItems(self, maxItems: int) setMaxVisibleItems(self, maxItems: int) [extrait de setMaxVisibleItems.__doc__]
setMinimumContentsLength(self, characters: int) setMinimumContentsLength(self, characters: int) [extrait de setMinimumContentsLength.__doc__]
setModel(self, model: PySide2.QtCore.QAbstractItemModel) setModel(self, model: PySide2.QtCore.QAbstractItemModel) [extrait de setModel.__doc__]
setModelColumn(self, visibleColumn: int) setModelColumn(self, visibleColumn: int) [extrait de setModelColumn.__doc__]
setRootModelIndex(self, index: PySide2.QtCore.QModelIndex) setRootModelIndex(self, index: PySide2.QtCore.QModelIndex) [extrait de setRootModelIndex.__doc__]
setSizeAdjustPolicy(self, policy: PySide2.QtWidgets.QComboBox.SizeAdjustPolicy) setSizeAdjustPolicy(self, policy: PySide2.QtWidgets.QComboBox.SizeAdjustPolicy) [extrait de setSizeAdjustPolicy.__doc__]
setValidator(self, v: PySide2.QtGui.QValidator) setValidator(self, v: PySide2.QtGui.QValidator) [extrait de setValidator.__doc__]
setView(self, itemView: PySide2.QtWidgets.QAbstractItemView) setView(self, itemView: PySide2.QtWidgets.QAbstractItemView) [extrait de setView.__doc__]
showEvent(self, e: PySide2.QtGui.QShowEvent) showEvent(self, e: PySide2.QtGui.QShowEvent) [extrait de showEvent.__doc__]
showPopup(self) showPopup(self) [extrait de showPopup.__doc__]
SizeAdjustPolicy
sizeAdjustPolicy(self) -> PySide2.QtWidgets.QComboBox.SizeAdjustPolicy sizeAdjustPolicy(self) -> PySide2.QtWidgets.QComboBox.SizeAdjustPolicy [extrait de sizeAdjustPolicy.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
textActivated
textHighlighted
validator(self) -> PySide2.QtGui.QValidator validator(self) -> PySide2.QtGui.QValidator [extrait de validator.__doc__]
view(self) -> PySide2.QtWidgets.QAbstractItemView view(self) -> PySide2.QtWidgets.QAbstractItemView [extrait de view.__doc__]
wheelEvent(self, e: PySide2.QtGui.QWheelEvent) wheelEvent(self, e: PySide2.QtGui.QWheelEvent) [extrait de wheelEvent.__doc__]
windowIconChanged
windowIconTextChanged
windowTitleChanged

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

__init_subclass__, __repr__, __subclasshook__, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, initPainter, inputMethodHints, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, restoreGeometry, saveGeometry, screen, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y

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

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, devType, height, heightMM, initPainter, logicalDpiX, logicalDpiY, metric, PaintDeviceMetric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

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

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

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__