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.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: Optional[PySide6.QtWidgets.QWidget] = None) -> 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, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None __init__(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AdjustToContentsPySide6.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents
AdjustToContentsOnFirstShowPySide6.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContentsOnFirstShow
AdjustToMinimumContentsLengthWithIconPySide6.QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon
DrawChildrenPySide6.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide6.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide6.QtWidgets.QWidget.RenderFlag.IgnoreMask
InsertAfterCurrentPySide6.QtWidgets.QComboBox.InsertPolicy.InsertAfterCurrent
InsertAlphabeticallyPySide6.QtWidgets.QComboBox.InsertPolicy.InsertAlphabetically
InsertAtBottomPySide6.QtWidgets.QComboBox.InsertPolicy.InsertAtBottom
InsertAtCurrentPySide6.QtWidgets.QComboBox.InsertPolicy.InsertAtCurrent
InsertAtTopPySide6.QtWidgets.QComboBox.InsertPolicy.InsertAtTop
InsertBeforeCurrentPySide6.QtWidgets.QComboBox.InsertPolicy.InsertBeforeCurrent
NoInsertPySide6.QtWidgets.QComboBox.InsertPolicy.NoInsert
PdmDepthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfe25300>

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: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str, userData: Any = Invalid(typing.Any)) -> None [extrait de addItem.__doc__]
addItems(self, texts: Sequence[str]) -> None addItems(self, texts: Sequence[str]) -> None [extrait de addItems.__doc__]
changeEvent(self, e: PySide6.QtCore.QEvent) -> None changeEvent(self, e: PySide6.QtCore.QEvent) -> None [extrait de changeEvent.__doc__]
clear(self) -> None clear(self) -> None [extrait de clear.__doc__]
clearEditText(self) -> None clearEditText(self) -> None [extrait de clearEditText.__doc__]
completer(self) -> PySide6.QtWidgets.QCompleter completer(self) -> PySide6.QtWidgets.QCompleter [extrait de completer.__doc__]
contextMenuEvent(self, e: PySide6.QtGui.QContextMenuEvent) -> None contextMenuEvent(self, e: PySide6.QtGui.QContextMenuEvent) -> None [extrait de contextMenuEvent.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
currentData(self, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> Any currentData(self, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> 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: PySide6.QtCore.QEvent) -> bool event(self, event: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
findData(self, data: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole, flags: PySide6.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int findData(self, data: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole, flags: PySide6.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int [extrait de findData.__doc__]
findText(self, text: str, flags: PySide6.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int findText(self, text: str, flags: PySide6.QtCore.Qt.MatchFlags = Instance(Qt.MatchFlags(Qt.MatchExactly | Qt.MatchCaseSensitive))) -> int [extrait de findText.__doc__]
focusInEvent(self, e: PySide6.QtGui.QFocusEvent) -> None focusInEvent(self, e: PySide6.QtGui.QFocusEvent) -> None [extrait de focusInEvent.__doc__]
focusOutEvent(self, e: PySide6.QtGui.QFocusEvent) -> None focusOutEvent(self, e: PySide6.QtGui.QFocusEvent) -> None [extrait de focusOutEvent.__doc__]
hasFrame(self) -> bool hasFrame(self) -> bool [extrait de hasFrame.__doc__]
hideEvent(self, e: PySide6.QtGui.QHideEvent) -> None hideEvent(self, e: PySide6.QtGui.QHideEvent) -> None [extrait de hideEvent.__doc__]
hidePopup(self) -> None hidePopup(self) -> None [extrait de hidePopup.__doc__]
highlighted
iconSize(self) -> PySide6.QtCore.QSize iconSize(self) -> PySide6.QtCore.QSize [extrait de iconSize.__doc__]
initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionComboBox) -> None initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionComboBox) -> None [extrait de initStyleOption.__doc__]
inputMethodEvent(self, arg__1: PySide6.QtGui.QInputMethodEvent) -> None inputMethodEvent(self, arg__1: PySide6.QtGui.QInputMethodEvent) -> None [extrait de inputMethodEvent.__doc__]
inputMethodQuery inputMethodQuery(self, arg__1: PySide6.QtCore.Qt.InputMethodQuery) -> Any [extrait de inputMethodQuery.__doc__]
insertItem insertItem(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], text: str, userData: Any = Invalid(typing.Any)) -> None [extrait de insertItem.__doc__]
insertItems(self, index: int, texts: Sequence[str]) -> None insertItems(self, index: int, texts: Sequence[str]) -> None [extrait de insertItems.__doc__]
InsertPolicy
insertPolicy(self) -> PySide6.QtWidgets.QComboBox.InsertPolicy insertPolicy(self) -> PySide6.QtWidgets.QComboBox.InsertPolicy [extrait de insertPolicy.__doc__]
insertSeparator(self, index: int) -> None insertSeparator(self, index: int) -> None [extrait de insertSeparator.__doc__]
isEditable(self) -> bool isEditable(self) -> bool [extrait de isEditable.__doc__]
itemData(self, index: int, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> Any itemData(self, index: int, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> Any [extrait de itemData.__doc__]
itemDelegate(self) -> PySide6.QtWidgets.QAbstractItemDelegate itemDelegate(self) -> PySide6.QtWidgets.QAbstractItemDelegate [extrait de itemDelegate.__doc__]
itemIcon(self, index: int) -> PySide6.QtGui.QIcon itemIcon(self, index: int) -> PySide6.QtGui.QIcon [extrait de itemIcon.__doc__]
itemText(self, index: int) -> str itemText(self, index: int) -> str [extrait de itemText.__doc__]
keyPressEvent(self, e: PySide6.QtGui.QKeyEvent) -> None keyPressEvent(self, e: PySide6.QtGui.QKeyEvent) -> None [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, e: PySide6.QtGui.QKeyEvent) -> None keyReleaseEvent(self, e: PySide6.QtGui.QKeyEvent) -> None [extrait de keyReleaseEvent.__doc__]
lineEdit(self) -> PySide6.QtWidgets.QLineEdit lineEdit(self) -> PySide6.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) -> PySide6.QtCore.QSize minimumSizeHint(self) -> PySide6.QtCore.QSize [extrait de minimumSizeHint.__doc__]
model(self) -> PySide6.QtCore.QAbstractItemModel model(self) -> PySide6.QtCore.QAbstractItemModel [extrait de model.__doc__]
modelColumn(self) -> int modelColumn(self) -> int [extrait de modelColumn.__doc__]
mousePressEvent(self, e: PySide6.QtGui.QMouseEvent) -> None mousePressEvent(self, e: PySide6.QtGui.QMouseEvent) -> None [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, e: PySide6.QtGui.QMouseEvent) -> None mouseReleaseEvent(self, e: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
paintEvent(self, e: PySide6.QtGui.QPaintEvent) -> None paintEvent(self, e: PySide6.QtGui.QPaintEvent) -> None [extrait de paintEvent.__doc__]
placeholderText(self) -> str placeholderText(self) -> str [extrait de placeholderText.__doc__]
removeItem(self, index: int) -> None removeItem(self, index: int) -> None [extrait de removeItem.__doc__]
resizeEvent(self, e: PySide6.QtGui.QResizeEvent) -> None resizeEvent(self, e: PySide6.QtGui.QResizeEvent) -> None [extrait de resizeEvent.__doc__]
rootModelIndex(self) -> PySide6.QtCore.QModelIndex rootModelIndex(self) -> PySide6.QtCore.QModelIndex [extrait de rootModelIndex.__doc__]
setCompleter(self, c: PySide6.QtWidgets.QCompleter) -> None setCompleter(self, c: PySide6.QtWidgets.QCompleter) -> None [extrait de setCompleter.__doc__]
setCurrentIndex(self, index: int) -> None setCurrentIndex(self, index: int) -> None [extrait de setCurrentIndex.__doc__]
setCurrentText(self, text: str) -> None setCurrentText(self, text: str) -> None [extrait de setCurrentText.__doc__]
setDuplicatesEnabled(self, enable: bool) -> None setDuplicatesEnabled(self, enable: bool) -> None [extrait de setDuplicatesEnabled.__doc__]
setEditable(self, editable: bool) -> None setEditable(self, editable: bool) -> None [extrait de setEditable.__doc__]
setEditText(self, text: str) -> None setEditText(self, text: str) -> None [extrait de setEditText.__doc__]
setFrame(self, arg__1: bool) -> None setFrame(self, arg__1: bool) -> None [extrait de setFrame.__doc__]
setIconSize(self, size: PySide6.QtCore.QSize) -> None setIconSize(self, size: PySide6.QtCore.QSize) -> None [extrait de setIconSize.__doc__]
setInsertPolicy(self, policy: PySide6.QtWidgets.QComboBox.InsertPolicy) -> None setInsertPolicy(self, policy: PySide6.QtWidgets.QComboBox.InsertPolicy) -> None [extrait de setInsertPolicy.__doc__]
setItemData(self, index: int, value: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> None setItemData(self, index: int, value: Any, role: int = PySide6.QtCore.Qt.ItemDataRole.UserRole) -> None [extrait de setItemData.__doc__]
setItemDelegate(self, delegate: PySide6.QtWidgets.QAbstractItemDelegate) -> None setItemDelegate(self, delegate: PySide6.QtWidgets.QAbstractItemDelegate) -> None [extrait de setItemDelegate.__doc__]
setItemIcon(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None setItemIcon(self, index: int, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None [extrait de setItemIcon.__doc__]
setItemText(self, index: int, text: str) -> None setItemText(self, index: int, text: str) -> None [extrait de setItemText.__doc__]
setLineEdit(self, edit: PySide6.QtWidgets.QLineEdit) -> None setLineEdit(self, edit: PySide6.QtWidgets.QLineEdit) -> None [extrait de setLineEdit.__doc__]
setMaxCount(self, max: int) -> None setMaxCount(self, max: int) -> None [extrait de setMaxCount.__doc__]
setMaxVisibleItems(self, maxItems: int) -> None setMaxVisibleItems(self, maxItems: int) -> None [extrait de setMaxVisibleItems.__doc__]
setMinimumContentsLength(self, characters: int) -> None setMinimumContentsLength(self, characters: int) -> None [extrait de setMinimumContentsLength.__doc__]
setModel(self, model: PySide6.QtCore.QAbstractItemModel) -> None setModel(self, model: PySide6.QtCore.QAbstractItemModel) -> None [extrait de setModel.__doc__]
setModelColumn(self, visibleColumn: int) -> None setModelColumn(self, visibleColumn: int) -> None [extrait de setModelColumn.__doc__]
setPlaceholderText(self, placeholderText: str) -> None setPlaceholderText(self, placeholderText: str) -> None [extrait de setPlaceholderText.__doc__]
setRootModelIndex(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None setRootModelIndex(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None [extrait de setRootModelIndex.__doc__]
setSizeAdjustPolicy(self, policy: PySide6.QtWidgets.QComboBox.SizeAdjustPolicy) -> None setSizeAdjustPolicy(self, policy: PySide6.QtWidgets.QComboBox.SizeAdjustPolicy) -> None [extrait de setSizeAdjustPolicy.__doc__]
setValidator(self, v: PySide6.QtGui.QValidator) -> None setValidator(self, v: PySide6.QtGui.QValidator) -> None [extrait de setValidator.__doc__]
setView(self, itemView: PySide6.QtWidgets.QAbstractItemView) -> None setView(self, itemView: PySide6.QtWidgets.QAbstractItemView) -> None [extrait de setView.__doc__]
showEvent(self, e: PySide6.QtGui.QShowEvent) -> None showEvent(self, e: PySide6.QtGui.QShowEvent) -> None [extrait de showEvent.__doc__]
showPopup(self) -> None showPopup(self) -> None [extrait de showPopup.__doc__]
SizeAdjustPolicy
sizeAdjustPolicy(self) -> PySide6.QtWidgets.QComboBox.SizeAdjustPolicy sizeAdjustPolicy(self) -> PySide6.QtWidgets.QComboBox.SizeAdjustPolicy [extrait de sizeAdjustPolicy.__doc__]
sizeHint(self) -> PySide6.QtCore.QSize sizeHint(self) -> PySide6.QtCore.QSize [extrait de sizeHint.__doc__]
textActivated
textHighlighted
tr
validator(self) -> PySide6.QtGui.QValidator validator(self) -> PySide6.QtGui.QValidator [extrait de validator.__doc__]
view(self) -> PySide6.QtWidgets.QAbstractItemView view(self) -> PySide6.QtWidgets.QAbstractItemView [extrait de view.__doc__]
wheelEvent(self, e: PySide6.QtGui.QWheelEvent) -> None wheelEvent(self, e: PySide6.QtGui.QWheelEvent) -> None [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, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, initPainter, inputMethodHints, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, 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, setScreen, 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, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

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

__getattribute__, __init_subclass__, __subclasshook__

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

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