Class DoubleSliderSpinBox
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

draggingFinished()

Member documentation

Krita 6.0.0
fastSliderStep()float
Krita 6.0.0

Return

(no description provided)

isDragging()bool
Krita 6.0.0

Return

(no description provided)

setBlockUpdateSignalOnDrag(newBlockUpdateSignalOnDrag: bool)
Krita 6.0.0

Parameters

newBlockUpdateSignalOnDrag(no description provided)
setExponentRatio(newExponentRatio: float)
Krita 6.0.0

Parameters

newExponentRatio(no description provided)
setFastSliderStep(newFastSliderStep: float)
Krita 6.0.0

Parameters

newFastSliderStep(no description provided)
setMaximum(newMaximum: float, computeNewFastSliderStep: bool = True)
Krita 6.0.0

Parameters

newMaximum(no description provided)
computeNewFastSliderStep(no description provided)
setMinimum(newMinimum: float, computeNewFastSliderStep: bool = True)
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()
setSoftMaximum(newSoftMaximum: float)
Krita 6.0.0

Parameters

newSoftMaximum(no description provided)
setSoftMinimum(newSoftMinimum: float)
Krita 6.0.0

Parameters

newSoftMinimum(no description provided)
setSoftRange(newSoftMinimum: float, newSoftMaximum: float)
Krita 6.0.0

Parameters

newSoftMinimum(no description provided)
newSoftMaximum(no description provided)
setValue(newValue: float)
Krita 6.0.0

Parameters

newValue(no description provided)
softMaximum()float
Krita 6.0.0

Return

(no description provided)

softMinimum()float
Krita 6.0.0

Return

(no description provided)

widget()QWidget
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