diff --git a/src/silx/gui/widgets/RangeSlider.py b/src/silx/gui/widgets/RangeSlider.py index 5cb428c142..c96ae14f03 100644 --- a/src/silx/gui/widgets/RangeSlider.py +++ b/src/silx/gui/widgets/RangeSlider.py @@ -29,7 +29,7 @@ __authors__ = ["D. Naudet", "T. Vincent"] __license__ = "MIT" -__date__ = "03/11/2023" +__date__ = "14/12/2023" import numpy as numpy @@ -514,7 +514,8 @@ def _mouseEventPosition(self, event): position = event.pos() else: # qt-6 returns QPointF - position = event.position() + # convert it to QPoint + position = event.position().toPoint() return position def mousePressEvent(self, event):