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

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QAbstractSpinBox
                    QSpinBox

Définition

class QSpinBox(QAbstractSpinBox):

Description [extrait de QSpinBox.__doc__]

QSpinBox(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
AdaptiveDecimalStepTypePySide6.QtWidgets.QAbstractSpinBox.StepType.AdaptiveDecimalStepType
CorrectToNearestValuePySide6.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToNearestValue
CorrectToPreviousValuePySide6.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToPreviousValue
DefaultStepTypePySide6.QtWidgets.QAbstractSpinBox.StepType.DefaultStepType
DrawChildrenPySide6.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide6.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide6.QtWidgets.QWidget.RenderFlag.IgnoreMask
NoButtonsPySide6.QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons
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
PlusMinusPySide6.QtWidgets.QAbstractSpinBox.ButtonSymbols.PlusMinus
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfe27480>
StepDownEnabledPySide6.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepDownEnabled
StepNonePySide6.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepNone
StepUpEnabledPySide6.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepUpEnabled
UpDownArrowsPySide6.QtWidgets.QAbstractSpinBox.ButtonSymbols.UpDownArrows

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__]
cleanText(self) -> str cleanText(self) -> str [extrait de cleanText.__doc__]
customContextMenuRequested
destroyed
displayIntegerBase(self) -> int displayIntegerBase(self) -> int [extrait de displayIntegerBase.__doc__]
editingFinished
event(self, event: PySide6.QtCore.QEvent) -> bool event(self, event: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
fixup(self, str: str) -> None fixup(self, str: str) -> None [extrait de fixup.__doc__]
maximum(self) -> int maximum(self) -> int [extrait de maximum.__doc__]
minimum(self) -> int minimum(self) -> int [extrait de minimum.__doc__]
objectNameChanged
prefix(self) -> str prefix(self) -> str [extrait de prefix.__doc__]
setDisplayIntegerBase(self, base: int) -> None setDisplayIntegerBase(self, base: int) -> None [extrait de setDisplayIntegerBase.__doc__]
setMaximum(self, max: int) -> None setMaximum(self, max: int) -> None [extrait de setMaximum.__doc__]
setMinimum(self, min: int) -> None setMinimum(self, min: int) -> None [extrait de setMinimum.__doc__]
setPrefix(self, prefix: str) -> None setPrefix(self, prefix: str) -> None [extrait de setPrefix.__doc__]
setRange(self, min: int, max: int) -> None setRange(self, min: int, max: int) -> None [extrait de setRange.__doc__]
setSingleStep(self, val: int) -> None setSingleStep(self, val: int) -> None [extrait de setSingleStep.__doc__]
setStepType(self, stepType: PySide6.QtWidgets.QAbstractSpinBox.StepType) -> None setStepType(self, stepType: PySide6.QtWidgets.QAbstractSpinBox.StepType) -> None [extrait de setStepType.__doc__]
setSuffix(self, suffix: str) -> None setSuffix(self, suffix: str) -> None [extrait de setSuffix.__doc__]
setValue(self, val: int) -> None setValue(self, val: int) -> None [extrait de setValue.__doc__]
singleStep(self) -> int singleStep(self) -> int [extrait de singleStep.__doc__]
stepType(self) -> PySide6.QtWidgets.QAbstractSpinBox.StepType stepType(self) -> PySide6.QtWidgets.QAbstractSpinBox.StepType [extrait de stepType.__doc__]
suffix(self) -> str suffix(self) -> str [extrait de suffix.__doc__]
textChanged
textFromValue(self, val: int) -> str textFromValue(self, val: int) -> str [extrait de textFromValue.__doc__]
tr
validate(self, input: str, pos: int) -> object validate(self, input: str, pos: int) -> object [extrait de validate.__doc__]
value(self) -> int value(self) -> int [extrait de value.__doc__]
valueChanged
valueFromText(self, text: str) -> int valueFromText(self, text: str) -> int [extrait de valueFromText.__doc__]
windowIconChanged
windowIconTextChanged
windowTitleChanged

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

__init_subclass__, __subclasshook__, alignment, ButtonSymbols, buttonSymbols, changeEvent, clear, closeEvent, contextMenuEvent, CorrectionMode, correctionMode, focusInEvent, focusOutEvent, hasAcceptableInput, hasFrame, hideEvent, initStyleOption, inputMethodQuery, interpretText, isAccelerated, isGroupSeparatorShown, isReadOnly, keyboardTracking, keyPressEvent, keyReleaseEvent, lineEdit, minimumSizeHint, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, paintEvent, resizeEvent, selectAll, setAccelerated, setAlignment, setButtonSymbols, setCorrectionMode, setFrame, setGroupSeparatorShown, setKeyboardTracking, setLineEdit, setReadOnly, setSpecialValueText, setWrapping, showEvent, sizeHint, specialValueText, stepBy, stepDown, StepEnabled, stepEnabled, StepEnabledFlag, StepType, stepUp, text, timerEvent, wheelEvent, wrapping

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, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, 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, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyPressEvent, keyReleaseEvent, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, paintEvent, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, resizeEvent, 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, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, 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__