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

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QDialog
                    QInputDialog

Définition

class QInputDialog(QDialog):

Description [extrait de QInputDialog.__doc__]

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

Liste des attributs statiques

Nom de l'attribut Valeur
AcceptedPySide6.QtWidgets.QDialog.DialogCode.Accepted
DoubleInputPySide6.QtWidgets.QInputDialog.InputMode.DoubleInput
DrawChildrenPySide6.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide6.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide6.QtWidgets.QWidget.RenderFlag.IgnoreMask
IntInputPySide6.QtWidgets.QInputDialog.InputMode.IntInput
NoButtonsPySide6.QtWidgets.QInputDialog.InputDialogOption.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
RejectedPySide6.QtWidgets.QDialog.DialogCode.Rejected
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dfe0bb00>
TextInputPySide6.QtWidgets.QInputDialog.InputMode.TextInput
UseListViewForComboBoxItemsPySide6.QtWidgets.QInputDialog.InputDialogOption.UseListViewForComboBoxItems
UsePlainTextEditForTextInputPySide6.QtWidgets.QInputDialog.InputDialogOption.UsePlainTextEditForTextInput

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__]
accepted
cancelButtonText(self) -> str cancelButtonText(self) -> str [extrait de cancelButtonText.__doc__]
comboBoxItems(self) -> List[str] comboBoxItems(self) -> List[str] [extrait de comboBoxItems.__doc__]
customContextMenuRequested
destroyed
done(self, result: int) -> None done(self, result: int) -> None [extrait de done.__doc__]
doubleDecimals(self) -> int doubleDecimals(self) -> int [extrait de doubleDecimals.__doc__]
doubleMaximum(self) -> float doubleMaximum(self) -> float [extrait de doubleMaximum.__doc__]
doubleMinimum(self) -> float doubleMinimum(self) -> float [extrait de doubleMinimum.__doc__]
doubleStep(self) -> float doubleStep(self) -> float [extrait de doubleStep.__doc__]
doubleValue(self) -> float doubleValue(self) -> float [extrait de doubleValue.__doc__]
doubleValueChanged
doubleValueSelected
finished
getDouble(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: float, minValue: float = 0, maxValue: float = -2147483647, decimals: int = 2147483647, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), step: float = 1) -> Tuple[float, bool] getDouble(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: float, minValue: float = 0, maxValue: float = -2147483647, decimals: int = 2147483647, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), step: float = 1) -> Tuple[float, bool] [extrait de getDouble.__doc__]
getInt(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: int, minValue: int = 0, maxValue: int = -2147483647, step: int = 2147483647, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags)) -> Tuple[int, bool] getInt(parent: PySide6.QtWidgets.QWidget, title: str, label: str, value: int, minValue: int = 0, maxValue: int = -2147483647, step: int = 2147483647, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags)) -> Tuple[int, bool] [extrait de getInt.__doc__]
getItem(parent: PySide6.QtWidgets.QWidget, title: str, label: str, items: Sequence[str], current: int, editable: bool = 0, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] getItem(parent: PySide6.QtWidgets.QWidget, title: str, label: str, items: Sequence[str], current: int, editable: bool = 0, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] [extrait de getItem.__doc__]
getMultiLineText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, text: str, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] getMultiLineText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, text: str, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] [extrait de getMultiLineText.__doc__]
getText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, echo: PySide6.QtWidgets.QLineEdit.EchoMode, text: str = PySide6.QtWidgets.QLineEdit.EchoMode.Normal, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] getText(parent: PySide6.QtWidgets.QWidget, title: str, label: str, echo: PySide6.QtWidgets.QLineEdit.EchoMode, text: str = PySide6.QtWidgets.QLineEdit.EchoMode.Normal, flags: PySide6.QtCore.Qt.WindowFlags = Default(Qt.WindowFlags), inputMethodHints: PySide6.QtCore.Qt.InputMethodHints = PySide6.QtCore.Qt.InputMethodHint.ImhNone) -> Tuple[str, bool] [extrait de getText.__doc__]
InputDialogOption
InputMode
inputMode(self) -> PySide6.QtWidgets.QInputDialog.InputMode inputMode(self) -> PySide6.QtWidgets.QInputDialog.InputMode [extrait de inputMode.__doc__]
intMaximum(self) -> int intMaximum(self) -> int [extrait de intMaximum.__doc__]
intMinimum(self) -> int intMinimum(self) -> int [extrait de intMinimum.__doc__]
intStep(self) -> int intStep(self) -> int [extrait de intStep.__doc__]
intValue(self) -> int intValue(self) -> int [extrait de intValue.__doc__]
intValueChanged
intValueSelected
isComboBoxEditable(self) -> bool isComboBoxEditable(self) -> bool [extrait de isComboBoxEditable.__doc__]
labelText(self) -> str labelText(self) -> str [extrait de labelText.__doc__]
minimumSizeHint(self) -> PySide6.QtCore.QSize minimumSizeHint(self) -> PySide6.QtCore.QSize [extrait de minimumSizeHint.__doc__]
objectNameChanged
okButtonText(self) -> str okButtonText(self) -> str [extrait de okButtonText.__doc__]
open open(self) -> None [extrait de open.__doc__]
rejected
setCancelButtonText(self, text: str) -> None setCancelButtonText(self, text: str) -> None [extrait de setCancelButtonText.__doc__]
setComboBoxEditable(self, editable: bool) -> None setComboBoxEditable(self, editable: bool) -> None [extrait de setComboBoxEditable.__doc__]
setComboBoxItems(self, items: Sequence[str]) -> None setComboBoxItems(self, items: Sequence[str]) -> None [extrait de setComboBoxItems.__doc__]
setDoubleDecimals(self, decimals: int) -> None setDoubleDecimals(self, decimals: int) -> None [extrait de setDoubleDecimals.__doc__]
setDoubleMaximum(self, max: float) -> None setDoubleMaximum(self, max: float) -> None [extrait de setDoubleMaximum.__doc__]
setDoubleMinimum(self, min: float) -> None setDoubleMinimum(self, min: float) -> None [extrait de setDoubleMinimum.__doc__]
setDoubleRange(self, min: float, max: float) -> None setDoubleRange(self, min: float, max: float) -> None [extrait de setDoubleRange.__doc__]
setDoubleStep(self, step: float) -> None setDoubleStep(self, step: float) -> None [extrait de setDoubleStep.__doc__]
setDoubleValue(self, value: float) -> None setDoubleValue(self, value: float) -> None [extrait de setDoubleValue.__doc__]
setInputMode(self, mode: PySide6.QtWidgets.QInputDialog.InputMode) -> None setInputMode(self, mode: PySide6.QtWidgets.QInputDialog.InputMode) -> None [extrait de setInputMode.__doc__]
setIntMaximum(self, max: int) -> None setIntMaximum(self, max: int) -> None [extrait de setIntMaximum.__doc__]
setIntMinimum(self, min: int) -> None setIntMinimum(self, min: int) -> None [extrait de setIntMinimum.__doc__]
setIntRange(self, min: int, max: int) -> None setIntRange(self, min: int, max: int) -> None [extrait de setIntRange.__doc__]
setIntStep(self, step: int) -> None setIntStep(self, step: int) -> None [extrait de setIntStep.__doc__]
setIntValue(self, value: int) -> None setIntValue(self, value: int) -> None [extrait de setIntValue.__doc__]
setLabelText(self, text: str) -> None setLabelText(self, text: str) -> None [extrait de setLabelText.__doc__]
setOkButtonText(self, text: str) -> None setOkButtonText(self, text: str) -> None [extrait de setOkButtonText.__doc__]
setOption(self, option: PySide6.QtWidgets.QInputDialog.InputDialogOption, on: bool = True) -> None setOption(self, option: PySide6.QtWidgets.QInputDialog.InputDialogOption, on: bool = True) -> None [extrait de setOption.__doc__]
setTextEchoMode(self, mode: PySide6.QtWidgets.QLineEdit.EchoMode) -> None setTextEchoMode(self, mode: PySide6.QtWidgets.QLineEdit.EchoMode) -> None [extrait de setTextEchoMode.__doc__]
setTextValue(self, text: str) -> None setTextValue(self, text: str) -> None [extrait de setTextValue.__doc__]
setVisible(self, visible: bool) -> None setVisible(self, visible: bool) -> None [extrait de setVisible.__doc__]
sizeHint(self) -> PySide6.QtCore.QSize sizeHint(self) -> PySide6.QtCore.QSize [extrait de sizeHint.__doc__]
testOption(self, option: PySide6.QtWidgets.QInputDialog.InputDialogOption) -> bool testOption(self, option: PySide6.QtWidgets.QInputDialog.InputDialogOption) -> bool [extrait de testOption.__doc__]
textEchoMode(self) -> PySide6.QtWidgets.QLineEdit.EchoMode textEchoMode(self) -> PySide6.QtWidgets.QLineEdit.EchoMode [extrait de textEchoMode.__doc__]
textValue(self) -> str textValue(self) -> str [extrait de textValue.__doc__]
textValueChanged
textValueSelected
tr
windowIconChanged
windowIconTextChanged
windowTitleChanged

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

__init_subclass__, __subclasshook__, accept, adjustPosition, closeEvent, contextMenuEvent, DialogCode, eventFilter, exec, exec_, isSizeGripEnabled, keyPressEvent, reject, resizeEvent, result, setModal, setResult, setSizeGripEnabled, showEvent

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, event, 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, 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, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showEvent, 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, 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, event, 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__