![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice AT.3 — two-thumb horizontal range slider widget. More...
#include <QWidget>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::RangeSliderWidget |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Slice AT.3 — two-thumb horizontal range slider widget.
Qt ships QSlider (single thumb) but no built-in two-thumb range slider. RangeSliderWidget fills the gap with a minimal QWidget that paints a track, a highlighted selected range, and two draggable thumbs. Values are normalised to [0..1]; the host (ComparisonPlotDialog) maps that to a QDateTime time range and applies it to row 0's xAxis (the existing linked-X-axis sync propagates to other rows).
Interaction:
Constraint: lo ≤ hi is always preserved; thumbs can touch but cannot cross.