A slider control with two interactive endpoints, for interactive selection of a range of values.
More...
#include <qgsrangeslider.h>
A slider control with two interactive endpoints, for interactive selection of a range of values.
- Since
- QGIS 3.18
Definition at line 31 of file qgsrangeslider.h.
◆ QgsRangeSlider() [1/2]
QgsRangeSlider::QgsRangeSlider |
( |
QWidget * |
parent = nullptr | ) |
|
◆ QgsRangeSlider() [2/2]
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.
◆ event
bool QgsRangeSlider::event |
( |
QEvent * |
event | ) |
|
|
overrideslot |
◆ flippedDirection()
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.
- See also
- setFlippedDirection()
Definition at line 447 of file qgsrangeslider.cpp.
◆ keyPressEvent()
void QgsRangeSlider::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
override |
◆ lowerValue()
int QgsRangeSlider::lowerValue |
( |
| ) |
const |
◆ maximum()
int QgsRangeSlider::maximum |
( |
| ) |
const |
◆ minimum()
int QgsRangeSlider::minimum |
( |
| ) |
const |
◆ minimumSizeHint()
QSize QgsRangeSlider::minimumSizeHint |
( |
| ) |
const |
|
override |
◆ mouseMoveEvent()
void QgsRangeSlider::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
override |
◆ mousePressEvent()
void QgsRangeSlider::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
override |
◆ mouseReleaseEvent()
void QgsRangeSlider::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
override |
◆ orientation()
Qt::Orientation QgsRangeSlider::orientation |
( |
| ) |
const |
◆ pageStep()
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).
- See also
- setPageStep()
-
singleStep()
Definition at line 388 of file qgsrangeslider.cpp.
◆ paintEvent()
void QgsRangeSlider::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
override |
◆ rangeChanged
void QgsRangeSlider::rangeChanged |
( |
int |
minimum, |
|
|
int |
maximum |
|
) |
| |
|
signal |
Emitted when the range selected in the widget is changed.
◆ rangeLimitsChanged
void QgsRangeSlider::rangeLimitsChanged |
( |
int |
minimum, |
|
|
int |
maximum |
|
) |
| |
|
signal |
Emitted when the limits of values allowed in the widget is changed.
◆ setFlippedDirection()
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).
- See also
- flippedDirection()
Definition at line 452 of file qgsrangeslider.cpp.
◆ setLowerValue
void QgsRangeSlider::setLowerValue |
( |
int |
value | ) |
|
|
slot |
◆ setMaximum
void QgsRangeSlider::setMaximum |
( |
int |
maximum | ) |
|
|
slot |
◆ setMinimum
void QgsRangeSlider::setMinimum |
( |
int |
minimum | ) |
|
|
slot |
◆ setOrientation()
void QgsRangeSlider::setOrientation |
( |
Qt::Orientation |
orientation | ) |
|
◆ setPageStep
void QgsRangeSlider::setPageStep |
( |
int |
step | ) |
|
|
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).
- See also
- pageStep()
-
setSingleStep()
Definition at line 393 of file qgsrangeslider.cpp.
◆ setRange
void QgsRangeSlider::setRange |
( |
int |
lower, |
|
|
int |
upper |
|
) |
| |
|
slot |
◆ setRangeLimits
void QgsRangeSlider::setRangeLimits |
( |
int |
minimum, |
|
|
int |
maximum |
|
) |
| |
|
slot |
◆ setSingleStep
void QgsRangeSlider::setSingleStep |
( |
int |
step | ) |
|
|
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.
- See also
- singleStep()
-
pageStep()
Definition at line 403 of file qgsrangeslider.cpp.
◆ setTickInterval()
void QgsRangeSlider::setTickInterval |
( |
int |
interval | ) |
|
◆ setTickPosition()
void QgsRangeSlider::setTickPosition |
( |
QSlider::TickPosition |
position | ) |
|
◆ setUpperValue
void QgsRangeSlider::setUpperValue |
( |
int |
value | ) |
|
|
slot |
◆ singleStep()
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.
- See also
- setSingleStep()
-
pageStep()
Definition at line 398 of file qgsrangeslider.cpp.
◆ sizeHint()
QSize QgsRangeSlider::sizeHint |
( |
| ) |
const |
|
override |
◆ tickInterval()
int QgsRangeSlider::tickInterval |
( |
| ) |
const |
◆ tickPosition()
QSlider::TickPosition QgsRangeSlider::tickPosition |
( |
| ) |
const |
◆ upperValue()
int QgsRangeSlider::upperValue |
( |
| ) |
const |
The documentation for this class was generated from the following files: