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

draggingFinished()

Member documentation

Krita master
fastSliderStep()float
Krita master

Return

(no description provided)

isDragging()bool
Krita master

Return

(no description provided)

setBlockUpdateSignalOnDrag(newBlockUpdateSignalOnDrag: bool)
Krita master

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Return

(no description provided)

softMinimum()float
Krita master

Return

(no description provided)

widget()QWidget
Krita master

Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI

Return

the internal KisDoubleSliderSpinBox as a QWidget