- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionSlider extends QStyleOptionComplex implements Cloneable
Used to describe the parameters needed for drawing a slider
Java wrapper for Qt class QStyleOptionSlider
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionSlider()
protected
QStyleOptionSlider(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionSlider(QStyleOptionSlider other)
-
Method Summary
Modifier and Type Method Description QStyleOptionSlider
clone()
boolean
dialWrapping()
Whether the dial should wrap or notint
maximum()
The maximum value for the sliderint
minimum()
The minimum value for the sliderdouble
notchTarget()
The number of pixel between notchesQt.Orientation
orientation()
The slider's orientation (horizontal or vertical)int
pageStep()
The size of the page step of the slidervoid
set(QStyleOptionSlider arg__1)
void
setDialWrapping(boolean dialWrapping)
Whether the dial should wrap or notvoid
setMaximum(int maximum)
The maximum value for the slidervoid
setMinimum(int minimum)
The minimum value for the slidervoid
setNotchTarget(double notchTarget)
The number of pixel between notchesvoid
setOrientation(Qt.Orientation orientation)
The slider's orientation (horizontal or vertical)void
setPageStep(int pageStep)
The size of the page step of the slidervoid
setSingleStep(int singleStep)
The size of the single step of the slidervoid
setSliderPosition(int sliderPosition)
The position of the slider handlevoid
setSliderValue(int sliderValue)
The value of the slidervoid
setTickInterval(int tickInterval)
The interval that should be drawn between tick marksvoid
setTickPosition(QSlider.TickPosition tickPosition)
The position of the slider's tick marks, if anyvoid
setUpsideDown(boolean upsideDown)
The slider control orientationint
singleStep()
The size of the single step of the sliderint
sliderPosition()
The position of the slider handleint
sliderValue()
The value of the sliderint
tickInterval()
The interval that should be drawn between tick marksQSlider.TickPosition
tickPosition()
The position of the slider's tick marks, if anyboolean
upsideDown()
The slider control orientationMethods inherited from class io.qt.widgets.QStyleOptionComplex
activeSubControls, set, setActiveSubControls, setSubControls, subControls
Methods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, init, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
Constructor Details
-
QStyleOptionSlider
public QStyleOptionSlider() -
QStyleOptionSlider
-
QStyleOptionSlider
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setMaximum
The maximum value for the slider
-
maximum
The maximum value for the slider
-
setPageStep
The size of the page step of the slider
-
pageStep
The size of the page step of the slider
-
setSingleStep
The size of the single step of the slider
-
singleStep
The size of the single step of the slider
-
setNotchTarget
The number of pixel between notches
-
notchTarget
The number of pixel between notches
-
setMinimum
The minimum value for the slider
-
minimum
The minimum value for the slider
-
setOrientation
The slider's orientation (horizontal or vertical)
See QStyleOptionSlider::setOrientation(Qt::Orientation orientation)
-
orientation
The slider's orientation (horizontal or vertical)
-
setSliderPosition
The position of the slider handle
See QStyleOptionSlider::setSliderPosition(int sliderPosition)
-
sliderPosition
The position of the slider handle
-
setTickInterval
The interval that should be drawn between tick marks
-
tickInterval
The interval that should be drawn between tick marks
-
setDialWrapping
Whether the dial should wrap or not
-
dialWrapping
Whether the dial should wrap or not
-
setUpsideDown
The slider control orientation
-
upsideDown
The slider control orientation
-
setSliderValue
The value of the slider
-
sliderValue
The value of the slider
-
setTickPosition
The position of the slider's tick marks, if any
See QStyleOptionSlider::setTickPosition(QSlider::TickPosition tickPosition)
-
tickPosition
The position of the slider's tick marks, if any
-
clone
- Overrides:
clone
in classQStyleOptionComplex
-