Slider widget with customizable options.
More...
#include <optionslider.h>
Inherits QWidget.
Slider widget with customizable options.
- Since
- 0.2.2
An example of OptionSlider
OptionSlider is QSlider-bades widget allowing to set own list of the options and to choose one of them by dragging slider's handle.
| QSint::OptionSlider::OptionSlider |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
| int QSint::OptionSlider::currentIndex |
( |
| ) |
|
Returns index of the currently selected option.
| const QStringList& QSint::OptionSlider::optionsList |
( |
| ) |
const |
|
inline |
Returns active list of options.
| void QSint::OptionSlider::setCurrentIndex |
( |
int |
index | ) |
|
Sets selected option index to index.
| void QSint::OptionSlider::setOptionsList |
( |
const QStringList & |
options | ) |
|
Sets displayed list of options to options.
| void QSint::OptionSlider::sliderMoved |
( |
int |
index | ) |
|
|
signal |
Signal emitted when the current index is changed by the user.
| void QSint::OptionSlider::valueChanged |
( |
int |
index | ) |
|
|
signal |
Signal emitted when the current index is changed either by the user or programmatically.
The documentation for this class was generated from the following files: