PythonQt.QtGui.QAbstractSpinBox · declarations 001
Back to PythonQt.QtGui.QAbstractSpinBox
AdaptiveDecimalStepType
instance-attribute
AdaptiveDecimalStepType: Any
ButtonSymbols
instance-attribute
ButtonSymbols: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
CorrectToNearestValue
instance-attribute
CorrectToNearestValue: Any
CorrectToPreviousValue
instance-attribute
CorrectToPreviousValue: Any
CorrectionMode
instance-attribute
CorrectionMode: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
DefaultStepType
instance-attribute
DefaultStepType: Any
NoButtons
instance-attribute
NoButtons: Any
PlusMinus
instance-attribute
PlusMinus: Any
StepDownEnabled
instance-attribute
StepDownEnabled: Any
StepEnabled
instance-attribute
StepEnabled: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
StepEnabledFlag
instance-attribute
StepEnabledFlag: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
StepNone
instance-attribute
StepNone: Any
StepType
instance-attribute
StepType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
StepUpEnabled
instance-attribute
StepUpEnabled: Any
UpDownArrows
instance-attribute
UpDownArrows: Any
accelerated
instance-attribute
accelerated: Any
Qt 5 reference:
accelerated : bool
This property holds whether the spin box will accelerate the frequency of the steps when pressing the step Up/Down buttons.
If enabled the spin box will increase/decrease the value faster the longer you hold the button down.
This property was introduced in Qt 4.2.
Access functions:
| bool | isAccelerated() const |
|---|---|
| void | setAccelerated(bool on) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#accelerated
acceptableInput
instance-attribute
acceptableInput: Any
Qt 5 reference:
acceptableInput : const bool
This property holds whether the input satisfies the current validation
This property was introduced in Qt 4.2.
Access functions:
| bool | hasAcceptableInput() const |
|---|---|
See also validate(), fixup(), and correctionMode.
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#acceptableInput
alignment
instance-attribute
alignment: Any
Qt 5 reference:
alignment : Qt::Alignment
This property holds the alignment of the spin box
Possible Values are Qt::AlignLeft, Qt::AlignRight, and Qt::AlignHCenter.
By default, the alignment is Qt::AlignLeft
Attempting to set the alignment to an illegal flag combination does nothing.
Access functions:
| Qt::Alignment | alignment() const |
|---|---|
| void | setAlignment(Qt::Alignment flag) |
See also Qt::Alignment.
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#alignment
buttonSymbols
instance-attribute
buttonSymbols: Any
Qt 5 reference:
buttonSymbols : ButtonSymbols
This property holds the current button symbol mode
The possible values can be either UpDownArrows or PlusMinus. The default is
UpDownArrows.
Note that some styles might render PlusMinus and UpDownArrows identically.
Access functions:
| QAbstractSpinBox::ButtonSymbols | buttonSymbols() const |
|---|---|
| void | setButtonSymbols(QAbstractSpinBox::ButtonSymbols bs) |
See also ButtonSymbols.
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#buttonSymbols
changeEvent
changeEvent(event: Any) -> None
X.changeEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::changeEvent(QEvent *event)
Reimplements: QWidget::changeEvent(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
changeEvent(self, event: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#changeEvent
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QAbstractSpinBox::clear()
Clears the lineedit of all text but prefix and suffix.
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#clear
closeEvent
closeEvent(event: Any) -> None
X.closeEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::closeEvent(QCloseEvent *event)
Reimplements: QWidget::closeEvent(QCloseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
closeEvent(self, event: PySide2.QtGui.QCloseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#closeEvent
contextMenuEvent
contextMenuEvent(event: Any) -> None
X.contextMenuEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::contextMenuEvent(QContextMenuEvent *event)
Reimplements: QWidget::contextMenuEvent(QContextMenuEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
contextMenuEvent(self, event: PySide2.QtGui.QContextMenuEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#contextMenuEvent
correctionMode
instance-attribute
correctionMode: Any
Qt 5 reference:
correctionMode : CorrectionMode
This property holds the mode to correct an Intermediate value if editing finishes
The default mode is QAbstractSpinBox::CorrectToPreviousValue.
This property was introduced in Qt 4.2.
Access functions:
| QAbstractSpinBox::CorrectionMode | correctionMode() const |
|---|---|
| void | setCorrectionMode(QAbstractSpinBox::CorrectionMode cm) |
See also acceptableInput, validate(), and fixup().
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#correctionMode
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractSpinBox.customContextMenuRequested; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractSpinBox.destroyed; argument details are not documented.
editingFinished
editingFinished(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractSpinBox.editingFinished; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractSpinBox::editingFinished()
This signal is emitted editing is finished. This happens when the spinbox loses focus and when enter is pressed.
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#editingFinished
event
event(event: Any) -> bool
X.event(event) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QAbstractSpinBox::event(QEvent *event)
Reimplements: QWidget::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#event
fixup
fixup(input: str) -> None
X.fixup(input)
Supplemental documentation: Qt 5 reference:
[virtual] void QAbstractSpinBox::fixup(QString \&input) const
This virtual function is called by the QAbstractSpinBox if the input is not validated to QValidator::Acceptable when Return is pressed or interpretText() is called. It will try to change the text so it is valid. Reimplemented in the various subclasses.
Upstream PySide2 reference signatures (binding differences may apply):
fixup(self, input: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#fixup
focusInEvent
focusInEvent(event: Any) -> None
X.focusInEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::focusInEvent(QFocusEvent *event)
Reimplements: QWidget::focusInEvent(QFocusEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#focusInEvent
focusOutEvent
focusOutEvent(event: Any) -> None
X.focusOutEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::focusOutEvent(QFocusEvent *event)
Reimplements: QWidget::focusOutEvent(QFocusEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
focusOutEvent(self, event: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#focusOutEvent
frame
instance-attribute
frame: Any
Qt 5 reference:
frame : bool
This property holds whether the spin box draws itself with a frame
If enabled (the default) the spin box draws itself inside a frame, otherwise the spin box draws itself without any frame.
Access functions:
| bool | hasFrame() const |
|---|---|
| void | setFrame(bool) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#frame
hasAcceptableInput
hasAcceptableInput() -> bool
X.hasAcceptableInput() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
hasAcceptableInput(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#hasAcceptableInput
hasFrame
hasFrame() -> bool
X.hasFrame() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
hasFrame(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#hasFrame
hideEvent
hideEvent(event: Any) -> None
X.hideEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractSpinBox::hideEvent(QHideEvent *event)
Reimplements: QWidget::hideEvent(QHideEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
hideEvent(self, event: PySide2.QtGui.QHideEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#hideEvent
initStyleOption
initStyleOption(option: Any) -> None
X.initStyleOption(option)
Supplemental documentation: Qt 5 reference:
[protected] void QAbstractSpinBox::initStyleOption(QStyleOptionSpinBox *option) const
Initialize option with the values from this QSpinBox. This method is useful for subclasses when they need a QStyleOptionSpinBox, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom().
Upstream PySide2 reference signatures (binding differences may apply):
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#initStyleOption
inputMethodQuery
inputMethodQuery(arg__1: Any) -> Any
X.inputMethodQuery(arg__1) -> object
Supplemental documentation: Qt 5 reference:
[override virtual] QVariant QAbstractSpinBox::inputMethodQuery(Qt::InputMethodQuery query) const
Reimplements: QWidget::inputMethodQuery(Qt::InputMethodQuery query) const.
Upstream PySide2 reference signatures (binding differences may apply):
inputMethodQuery(self, arg__1: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#inputMethodQuery
interpretText
interpretText() -> None
X.interpretText()
Supplemental documentation: Qt 5 reference:
void QAbstractSpinBox::interpretText()
This function interprets the text of the spin box. If the value has changed since last interpretation it will emit signals.
Upstream PySide2 reference signatures (binding differences may apply):
interpretText(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#interpretText
isAccelerated
isAccelerated() -> bool
X.isAccelerated() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isAccelerated(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#isAccelerated
isGroupSeparatorShown
isGroupSeparatorShown() -> bool
X.isGroupSeparatorShown() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isGroupSeparatorShown(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#isGroupSeparatorShown