PythonQt.QtGui.QDoubleSpinBox · declarations 001
Back to PythonQt.QtGui.QDoubleSpinBox
cleanText
instance-attribute
cleanText: str
Qt 5 reference:
cleanText : const QString
This property holds the text of the spin box excluding any prefix, suffix, or leading or trailing whitespace.
Access functions:
| QString | cleanText() const |
|---|---|
See also text, QDoubleSpinBox::prefix, and QDoubleSpinBox::suffix.
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#cleanText
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.customContextMenuRequested; argument details are not documented.
decimals
instance-attribute
decimals: int
Qt 5 reference:
decimals : int
This property holds the precision of the spin box, in decimals
Sets how many decimals the spinbox will use for displaying and interpreting doubles.
Warning: The maximum value for decimals is DBL_MAX_10_EXP + DBL_DIG (ie. 323) because of the limitations of the double type.
Note: The maximum, minimum and value might change as a result of changing this property.
Access functions:
| int | decimals() const |
|---|---|
| void | setDecimals(int prec) |
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#decimals
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.destroyed; argument details are not documented.
editingFinished
editingFinished(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.editingFinished; argument details are not documented.
fixup
fixup(str: str) -> None
X.fixup(str)
Supplemental documentation: Qt 5 reference:
[override virtual] void QDoubleSpinBox::fixup(QString \&input) const
Reimplements: QAbstractSpinBox::fixup(QString \&input) const.
Upstream PySide2 reference signatures (binding differences may apply):
fixup(self, str: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#fixup
maximum
instance-attribute
maximum: float
Qt 5 reference:
maximum : double
This property holds the maximum value of the spin box
When setting this property the minimum is adjusted if necessary, to ensure that the range remains valid.
The default maximum value is 99.99.
Note: The maximum value will be rounded to match the decimals property.
Access functions:
| double | maximum() const |
|---|---|
| void | setMaximum(double max) |
See also decimals and setRange().
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#maximum
minimum
instance-attribute
minimum: float
Qt 5 reference:
minimum : double
This property holds the minimum value of the spin box
When setting this property the maximum is adjusted if necessary to ensure that the range remains valid.
The default minimum value is 0.0.
Note: The minimum value will be rounded to match the decimals property.
Access functions:
| double | minimum() const |
|---|---|
| void | setMinimum(double min) |
See also decimals, setRange(), and specialValueText.
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#minimum
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.objectNameChanged; argument details are not documented.
prefix
instance-attribute
prefix: str
Qt 5 reference:
prefix : QString
This property holds the spin box's prefix
The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:
spinbox->setPrefix("$");
To turn off the prefix display, set this property to an empty string. The default is no prefix. The prefix is not displayed when value() \=\= minimum() and specialValueText() is set.
If no prefix is set, prefix() returns an empty string.
Access functions:
| QString | prefix() const |
|---|---|
| void | setPrefix(const QString \&prefix) |
See also suffix(), setSuffix(), specialValueText(), and setSpecialValueText().
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#prefix
setDecimals
setDecimals(prec: int) -> None
X.setDecimals(prec)
Upstream PySide2 reference signatures (binding differences may apply):
setDecimals(self, prec: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setDecimals
setMaximum
setMaximum(max: float) -> None
X.setMaximum(max)
Upstream PySide2 reference signatures (binding differences may apply):
setMaximum(self, max: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setMaximum
setMinimum
setMinimum(min: float) -> None
X.setMinimum(min)
Upstream PySide2 reference signatures (binding differences may apply):
setMinimum(self, min: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setMinimum
setPrefix
setPrefix(prefix: str) -> None
X.setPrefix(prefix)
Upstream PySide2 reference signatures (binding differences may apply):
setPrefix(self, prefix: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setPrefix
setRange
setRange(min: float, max: float) -> None
X.setRange(min, max)
Supplemental documentation: Qt 5 reference:
void QDoubleSpinBox::setRange(double minimum, double maximum)
Convenience function to set the minimum and maximum values with a single function call.
Note: The maximum and minimum values will be rounded to match the decimals property.
setRange(minimum, maximum);
is equivalent to:
setMinimum(minimum);
setMaximum(maximum);
Upstream PySide2 reference signatures (binding differences may apply):
setRange(self, min: float, max: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setRange
setSingleStep
setSingleStep(val: float) -> None
X.setSingleStep(val)
Upstream PySide2 reference signatures (binding differences may apply):
setSingleStep(self, val: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setSingleStep
setSuffix
setSuffix(suffix: str) -> None
X.setSuffix(suffix)
Upstream PySide2 reference signatures (binding differences may apply):
setSuffix(self, suffix: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setSuffix
setValue
setValue(val: float) -> None
X.setValue(val)
Upstream PySide2 reference signatures (binding differences may apply):
setValue(self, val: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#setValue
singleStep
instance-attribute
singleStep: float
Qt 5 reference:
singleStep : double
This property holds the step value
When the user uses the arrows to change the spin box's value the value will be incremented/decremented by the amount of the singleStep. The default value is 1.0. Setting a singleStep value of less than 0 does nothing.
Access functions:
| double | singleStep() const |
|---|---|
| void | setSingleStep(double val) |
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#singleStep
stepType
instance-attribute
stepType: Any
Qt 5 reference:
stepType : StepType
This property holds the step type.
The step type can be single step or adaptive decimal step.
Access functions:
| QAbstractSpinBox::StepType | stepType() const |
|---|---|
| void | setStepType(QAbstractSpinBox::StepType stepType) |
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#stepType
suffix
instance-attribute
suffix: str
Qt 5 reference:
suffix : QString
This property holds the suffix of the spin box
The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:
spinbox->setSuffix(" km");
To turn off the suffix display, set this property to an empty string. The default is no suffix. The suffix is not displayed for the minimum() if specialValueText() is set.
If no suffix is set, suffix() returns an empty string.
Access functions:
| QString | suffix() const |
|---|---|
| void | setSuffix(const QString \&suffix) |
See also prefix(), setPrefix(), specialValueText(), and setSpecialValueText().
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#suffix
textChanged
textChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.textChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDoubleSpinBox::textChanged(const QString \&text)
This signal is emitted whenever the spin box's text is changed. The new text is passed in text with prefix() and suffix().
This function was introduced in Qt 5.14.
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#textChanged
textFromValue
textFromValue(val: float) -> str
X.textFromValue(val) -> str
Supplemental documentation: Qt 5 reference:
[virtual] QString QDoubleSpinBox::textFromValue(double value) const
This virtual function is used by the spin box whenever it needs to display the given value. The default implementation returns a string containing value printed using QWidget::locale().toString(value, QLatin1Char('f'), decimals()) and will remove the thousand separator unless setGroupSeparatorShown() is set. Reimplementations may return anything.
Note: QDoubleSpinBox does not call this function for specialValueText() and that neither prefix() nor suffix() should be included in the return value.
If you reimplement this, you may also need to reimplement valueFromText().
See also valueFromText() and QLocale::groupSeparator().
Upstream PySide2 reference signatures (binding differences may apply):
textFromValue(self, val: float) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#textFromValue
validate
validate(input: str, pos: int) -> Any
X.validate(input, pos)
Supplemental documentation: Qt 5 reference:
[override virtual] QValidator::State QDoubleSpinBox::validate(QString \&text, int \&pos) const
Reimplements: QAbstractSpinBox::validate(QString \&input, int \&pos) const.
Upstream PySide2 reference signatures (binding differences may apply):
validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#validate
value
instance-attribute
value: float
Qt 5 reference:
value : double
This property holds the value of the spin box
setValue() will emit valueChanged() if the new value is different from the old one. The value property has a second notifier signal which includes the spin box's prefix and suffix.
Note: The value will be rounded so it can be displayed with the current setting of decimals.
Access functions:
| double | value() const |
|---|---|
| void | setValue(double val) |
Notifier signal:
| void | valueChanged(double d) |
|---|---|
See also decimals.
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#value
valueChanged
valueChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.valueChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDoubleSpinBox::valueChanged(double d)
This signal is emitted whenever the spin box's value is changed. The new value is passed in d.
Note: Notifier signal for property value.
Note: Signal valueChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(doubleSpinBox, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
[=](double d){ /* ... */ });
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#valueChanged
valueFromText
valueFromText(text: str) -> float
X.valueFromText(text) -> float
Supplemental documentation: Qt 5 reference:
[virtual] double QDoubleSpinBox::valueFromText(const QString \&text) const
This virtual function is used by the spin box whenever it needs to interpret text entered by the user as a value.
Subclasses that need to display spin box values in a non-numeric way need to reimplement this function.
Note: QDoubleSpinBox handles specialValueText() separately; this function is only concerned with the other values.
See also textFromValue() and validate().
Upstream PySide2 reference signatures (binding differences may apply):
valueFromText(self, text: str) -> float
Source: https://doc.qt.io/archives/qt-5.15/qdoublespinbox.html#valueFromText
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDoubleSpinBox.windowTitleChanged; argument details are not documented.