Build from SliderSpinBox.h
+Krita 6.0.0
This class is a wrapper around KisDoubleSliderSpinBox, a spinbox in which you can click and drag to set the value, with a slider like bar displayed inside. The widget itself is accessed with the widget() function.
Methods
fastSliderStep() ➞ float
isDragging() ➞ bool
setBlockUpdateSignalOnDrag(newBlockUpdateSignalOnDrag: bool)
setExponentRatio(newExponentRatio: float)
setFastSliderStep(newFastSliderStep: float)
setMaximum(newMaximum: float, computeNewFastSliderStep: bool = True)
setMinimum(newMinimum: float, computeNewFastSliderStep: bool = True)
setRange(newMinimum: float, newMaximum: float, newNumberOfDecimals: int = 0, computeNewFastSliderStep: bool = True)
setSoftMaximum(newSoftMaximum: float)
setSoftMinimum(newSoftMinimum: float)
setSoftRange(newSoftMinimum: float, newSoftMaximum: float)
setValue(newValue: float)
softMaximum() ➞ float
softMinimum() ➞ float
widget() ➞ QWidget
Signals
Member documentation
+Krita 6.0.0
Parameters
| newBlockUpdateSignalOnDrag | (no description provided) |
+Krita 6.0.0
Parameters
| newExponentRatio | (no description provided) |
+Krita 6.0.0
Parameters
| newFastSliderStep | (no description provided) |
+Krita 6.0.0
Parameters
| newMaximum | (no description provided) |
| computeNewFastSliderStep | (no description provided) |
+Krita 6.0.0
Parameters
| newMinimum | (no description provided) |
| computeNewFastSliderStep | (no description provided) |
setRange(newMinimum: float, newMaximum: float, newNumberOfDecimals: int = 0, computeNewFastSliderStep: bool = True)
+Krita 6.0.0
Set the minimum and the maximum values of the range
The soft range will be adapted to fit inside the range The number of decimals used can be changed with the newNumberOfDecimals parameter
Parameters
| newMinimum | the new minimum value |
| newMaximum | the new maximum value |
| newNumberOfDecimals | the new number of decimals |
| computeNewFastSliderStep | true if a new "fast slider step" must be computed based on the range |
🢒 See setMaximum()
+Krita 6.0.0
Parameters
| newSoftMaximum | (no description provided) |
+Krita 6.0.0
Parameters
| newSoftMinimum | (no description provided) |
+Krita 6.0.0
Parameters
| newSoftMinimum | (no description provided) |
| newSoftMaximum | (no description provided) |
+Krita 6.0.0
Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI
Return
the internal KisDoubleSliderSpinBox as a QWidget |