QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
A slider control with two interactive endpoints, for interactive selection of a range of values. More...
#include <qgsrangeslider.h>
Public Slots | |
bool | event (QEvent *event) override |
void | setLowerValue (int value) |
Sets the lower value for the range currently selected in the widget. | |
void | setMaximum (int maximum) |
Sets the maximum value allowed in the widget. | |
void | setMinimum (int minimum) |
Sets the minimum value allowed in the widget. | |
void | setPageStep (int step) |
Sets the page step value for the widget. | |
void | setRange (int lower, int upper) |
Sets the current range selected in the widget. | |
void | setRangeLimits (int minimum, int maximum) |
Sets the minimum and maximum range limits for values allowed in the widget. | |
void | setSingleStep (int step) |
Sets the single step value for the widget. | |
void | setUpperValue (int value) |
Sets the upper value for the range currently selected in the widget. | |
Signals | |
void | rangeChanged (int minimum, int maximum) |
Emitted when the range selected in the widget is changed. | |
void | rangeLimitsChanged (int minimum, int maximum) |
Emitted when the limits of values allowed in the widget is changed. | |
Public Member Functions | |
QgsRangeSlider (Qt::Orientation orientation, QWidget *parent=nullptr) | |
Constructor for QgsRangeSlider, with the specified parent widget. | |
QgsRangeSlider (QWidget *parent=nullptr) | |
Constructor for QgsRangeSlider, with the specified parent widget. | |
bool | flippedDirection () const |
Returns true if the slider has its values flipped. | |
void | keyPressEvent (QKeyEvent *event) override |
int | lowerValue () const |
Returns the lower value for the range selected in the widget. | |
int | maximum () const |
Returns the maximum value allowed by the widget. | |
int | minimum () const |
Returns the minimum value allowed by the widget. | |
QSize | minimumSizeHint () const override |
void | mouseMoveEvent (QMouseEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
Qt::Orientation | orientation () const |
Returns the orientation of the slider. | |
int | pageStep () const |
Returns the page step value for the widget. | |
void | paintEvent (QPaintEvent *event) override |
void | setFlippedDirection (bool flipped) |
Sets whether the slider has its values flipped. | |
void | setOrientation (Qt::Orientation orientation) |
Sets the orientation of the slider. | |
void | setTickInterval (int interval) |
Sets the interval for tick marks shown in the widget. | |
void | setTickPosition (QSlider::TickPosition position) |
Sets the position of the tick marks shown in the widget. | |
int | singleStep () const |
Returns the single step value for the widget. | |
QSize | sizeHint () const override |
int | tickInterval () const |
Returns the interval for tick marks shown in the widget. | |
QSlider::TickPosition | tickPosition () const |
Returns the position of the tick marks shown in the widget. | |
int | upperValue () const |
Returns the upper value for the range selected in the widget. | |
A slider control with two interactive endpoints, for interactive selection of a range of values.
Definition at line 31 of file qgsrangeslider.h.
QgsRangeSlider::QgsRangeSlider | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsRangeSlider, with the specified parent widget.
Definition at line 20 of file qgsrangeslider.cpp.
QgsRangeSlider::QgsRangeSlider | ( | Qt::Orientation | orientation, |
QWidget * | parent = nullptr |
||
) |
Constructor for QgsRangeSlider, with the specified parent widget.
The orientation parameter determines whether the slider is horizontal or vertical.
Definition at line 25 of file qgsrangeslider.cpp.
|
overrideslot |
Definition at line 159 of file qgsrangeslider.cpp.
bool QgsRangeSlider::flippedDirection | ( | ) | const |
Returns true
if the slider has its values flipped.
If this property is false
(the default), the minimum and maximum will be shown in its classic position for the widget. If the value is true
, the minimum and maximum appear at their opposite location.
Definition at line 447 of file qgsrangeslider.cpp.
|
override |
Definition at line 714 of file qgsrangeslider.cpp.
int QgsRangeSlider::lowerValue | ( | ) | const |
Returns the lower value for the range selected in the widget.
Definition at line 112 of file qgsrangeslider.cpp.
int QgsRangeSlider::maximum | ( | ) | const |
Returns the maximum value allowed by the widget.
Definition at line 43 of file qgsrangeslider.cpp.
int QgsRangeSlider::minimum | ( | ) | const |
Returns the minimum value allowed by the widget.
Definition at line 67 of file qgsrangeslider.cpp.
|
override |
Definition at line 1053 of file qgsrangeslider.cpp.
|
override |
Definition at line 582 of file qgsrangeslider.cpp.
|
override |
Definition at line 524 of file qgsrangeslider.cpp.
|
override |
Definition at line 701 of file qgsrangeslider.cpp.
Qt::Orientation QgsRangeSlider::orientation | ( | ) | const |
Returns the orientation of the slider.
Definition at line 442 of file qgsrangeslider.cpp.
int QgsRangeSlider::pageStep | ( | ) | const |
Returns the page step value for the widget.
This corresponds to the larger increment or decrement applied when the user presses the page increment key (usually PageUp or PageDown).
Definition at line 388 of file qgsrangeslider.cpp.
|
override |
Definition at line 458 of file qgsrangeslider.cpp.
|
signal |
Emitted when the range selected in the widget is changed.
|
signal |
Emitted when the limits of values allowed in the widget is changed.
void QgsRangeSlider::setFlippedDirection | ( | bool | flipped | ) |
Sets whether the slider has its values flipped.
If this property is false
(the default), the minimum and maximum will be shown in its classic position for the widget. If the value is true
, the minimum and maximum appear at their opposite location. (i.e. minimum at the bottom of a vertical slider, maximum at the top of a vertical slider).
Definition at line 452 of file qgsrangeslider.cpp.
|
slot |
Sets the lower value for the range currently selected in the widget.
Definition at line 117 of file qgsrangeslider.cpp.
|
slot |
Sets the maximum value allowed in the widget.
Definition at line 48 of file qgsrangeslider.cpp.
|
slot |
Sets the minimum value allowed in the widget.
Definition at line 72 of file qgsrangeslider.cpp.
void QgsRangeSlider::setOrientation | ( | Qt::Orientation | orientation | ) |
Sets the orientation of the slider.
Definition at line 430 of file qgsrangeslider.cpp.
|
slot |
Sets the page step value for the widget.
This corresponds to the larger increment or decrement applied when the user presses the page increment key (usually PageUp or PageDown).
Definition at line 393 of file qgsrangeslider.cpp.
|
slot |
Sets the current range selected in the widget.
Definition at line 145 of file qgsrangeslider.cpp.
|
slot |
Sets the minimum and maximum range limits for values allowed in the widget.
Definition at line 90 of file qgsrangeslider.cpp.
|
slot |
Sets the single step value for the widget.
This corresponds to the smaller increment or decrement applied when the user presses an arrow key.
Definition at line 403 of file qgsrangeslider.cpp.
void QgsRangeSlider::setTickInterval | ( | int | interval | ) |
Sets the interval for tick marks shown in the widget.
Definition at line 419 of file qgsrangeslider.cpp.
void QgsRangeSlider::setTickPosition | ( | QSlider::TickPosition | position | ) |
Sets the position of the tick marks shown in the widget.
Definition at line 408 of file qgsrangeslider.cpp.
|
slot |
Sets the upper value for the range currently selected in the widget.
Definition at line 134 of file qgsrangeslider.cpp.
int QgsRangeSlider::singleStep | ( | ) | const |
Returns the single step value for the widget.
This corresponds to the smaller increment or decrement applied when the user presses an arrow key.
Definition at line 398 of file qgsrangeslider.cpp.
|
override |
Definition at line 1032 of file qgsrangeslider.cpp.
int QgsRangeSlider::tickInterval | ( | ) | const |
Returns the interval for tick marks shown in the widget.
Definition at line 425 of file qgsrangeslider.cpp.
QSlider::TickPosition QgsRangeSlider::tickPosition | ( | ) | const |
Returns the position of the tick marks shown in the widget.
Definition at line 414 of file qgsrangeslider.cpp.
int QgsRangeSlider::upperValue | ( | ) | const |
Returns the upper value for the range selected in the widget.
Definition at line 128 of file qgsrangeslider.cpp.