![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtSpanSlider widget is a QSlider with two handles. More...
#include <QxtSpanSlider>
Inherits QSlider.
The QxtSpanSlider widget is a QSlider with two handles.
QxtSpanSlider is a slider with two handles. QxtSpanSlider is handy for letting user to choose an span between min/max.
The span color is calculated based on QPalette::Highlight.
The keys are bound according to the following table:
Orientation | Key | Handle |
---|---|---|
Qt::Horizontal | Qt::Key_Left | lower |
Qt::Horizontal | Qt::Key_Right | lower |
Qt::Horizontal | Qt::Key_Up | upper |
Qt::Horizontal | Qt::Key_Down | upper |
Qt::Vertical | Qt::Key_Up | lower |
Qt::Vertical | Qt::Key_Down | lower |
Qt::Vertical | Qt::Key_Left | upper |
Qt::Vertical | Qt::Key_Right | upper |
Keys are bound by the time the slider is created. A key is bound to same handle for the lifetime of the slider. So even if the handle representation might change from lower to upper, the same key binding remains.
Note: QxtSpanSlider inherits QSlider for implementation specific reasons. Adjusting any single handle specific properties like
has no effect. However, all slider specific properties like
are taken into consideration.
This enum describes the available handle movement modes.
Constant | Value | Description |
---|---|---|
QxtSpanSlider::FreeMovement | 0 | The handles can be moved freely. |
QxtSpanSlider::NoCrossing | 1 | The handles cannot cross, but they can still overlap each other. The lower and upper values can be the same. |
QxtSpanSlider::NoOverlapping | 2 | The handles cannot overlap each other. The lower and upper values cannot be the same. |
Constructs a new QxtSpanSlider with parent.
Constructs a new QxtSpanSlider with orientation and parent.
Destructs the span slider.
See also setHandleMovementMode().
See also setLowerPosition().
This signal is emitted whenever the lower position has changed.
See also setLowerValue().
This signal is emitted whenever the lower value has changed.
See also handleMovementMode().
See also lowerPosition().
See also lowerValue().
Sets the span from lower to upper.
See also upperPosition().
See also upperValue().
This signal is emitted whenever both the lower and the upper values have changed ie. the span has changed.
See also setUpperPosition().
This signal is emitted whenever the upper position has changed.
See also setUpperValue().
This signal is emitted whenever the upper value has changed.
Copyright © 2007-2010 Qxt Foundation |
Qxt 0.6.1 |