Build from SliderSpinBox.h
+Krita master
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 master
Parameters
newBlockUpdateSignalOnDrag | (no description provided) |
+Krita master
Parameters
newExponentRatio | (no description provided) |
+Krita master
Parameters
newFastSliderStep | (no description provided) |
+Krita master
Parameters
newMaximum | (no description provided) |
computeNewFastSliderStep | (no description provided) |
+Krita master
Parameters
newMinimum | (no description provided) |
computeNewFastSliderStep | (no description provided) |
setRange(newMinimum: float, newMaximum: float, newNumberOfDecimals: int = 0, computeNewFastSliderStep: bool = True)
+Krita master
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 master
Parameters
newSoftMaximum | (no description provided) |
+Krita master
Parameters
newSoftMinimum | (no description provided) |
+Krita master
Parameters
newSoftMinimum | (no description provided) |
newSoftMaximum | (no description provided) |
+Krita master
Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI
Return
the internal KisDoubleSliderSpinBox as a QWidget |