ScrollBar Class Reference
from PyKDE4.plasma import *
Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma
Detailed Description
ScrollBar plasma/widgets/scrollbar.h <Plasma/Widgets/ScrollBar>
Provides a plasma-themed QScrollBar.
Signal Documentation
valueChanged |
( |
int |
value |
|
) |
|
|
|
Emitted when the value of the slider changes
- Signal syntax:
QObject.connect(source, SIGNAL("valueChanged(int)"), target_slot)
Method Documentation
Creates a scrollbar; the default orientation is vertical
- Returns:
- the maximum value bound of this ScrollBar
- Returns:
- the minimum value bound of this ScrollBar
- Returns:
- the native widget wrapped by this ScrollBar
- Returns:
- the orientation of the scrollbar
- Since:
- 4.4
- Returns:
- the amount of the page step
Sets the orientation of the ScrollBar.
setPageStep |
( |
self, |
|
|
|
int |
val |
|
) |
|
|
|
Sets the amount the slider will scroll when the user press page up or page down
@arg val
setRange |
( |
self, |
|
|
|
int |
min, |
|
|
int |
max |
|
) |
|
|
|
Sets the scrollbar minimum and maximum values
@arg min minimum value
@arg max maximum value
setSingleStep |
( |
self, |
|
|
|
int |
val |
|
) |
|
|
|
Sets the amount of the single step
i.e how much the slider will move when the user press an arrow button
@arg val
setStyleSheet |
( |
self, |
|
|
|
QString |
stylesheet |
|
) |
|
|
|
Sets the stylesheet used to control the visual display of this ScrollBar
@arg stylesheet a CSS string
setValue |
( |
self, |
|
|
|
int |
val |
|
) |
|
|
|
Sets the current value for the ScrollBar
@arg value must be minimum() <= value <= maximum()
- Returns:
- the amount of the single step
- Returns:
- the stylesheet currently used with this widget
- Returns:
- the current scrollbar value