SpinBox Class Reference
from PyKDE4.plasma import *
Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma
Detailed Description
SpinBox plasma/widgets/slider.h <Plasma/Widgets/SpinBox>
Provides a plasma-themed KIntSpinBox.
Method Documentation
This signal is emitted when editing is finished.
This happens when the spinbox loses focus and when enter is pressed.
- Signal syntax:
QObject.connect(source, SIGNAL("editingFinished()"), target_slot)
- Returns:
- the maximum value
- Returns:
- the minimum value
- Returns:
- the native widget wrapped by this SpinBox
setMaximum |
( |
self, |
|
|
|
int |
maximum |
|
) |
|
|
|
Sets the maximum value the slider can take.
setMinimum |
( |
self, |
|
|
|
int |
minimum |
|
) |
|
|
|
Sets the minimum value the slider can take.
setRange |
( |
self, |
|
|
|
int |
minimum, |
|
|
int |
maximum |
|
) |
|
|
|
Sets the minimum and maximum values the slider can take.
setStyleSheet |
( |
self, |
|
|
|
QString |
stylesheet |
|
) |
|
|
|
Sets the stylesheet used to control the visual display of this SpinBox
@arg stylesheet a CSS string
setValue |
( |
self, |
|
|
|
int |
value |
|
) |
|
|
|
Sets the value of the slider.
If it is outside the range specified by minimum() and maximum(),
it will be adjusted to fit.
sliderMoved |
( |
self, |
|
|
|
int |
value |
|
) |
|
|
|
This signal is emitted when the user drags the slider.
In fact, it is emitted whenever the sliderMoved(int) signal
of KIntSpinBox would be emitted. See the Qt documentation for
more information.
- Signal syntax:
QObject.connect(source, SIGNAL("sliderMoved(int)"), target_slot)
- Returns:
- the stylesheet currently used with this widget
- Returns:
- the current value
valueChanged |
( |
self, |
|
|
|
int |
value |
|
) |
|
|
|
This signal is emitted when the slider value has changed,
with the new slider value as argument.
- Signal syntax:
QObject.connect(source, SIGNAL("valueChanged(int)"), target_slot)