From 7a949b7924dd5069deb8b83783cd35554532a435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Thu, 14 Dec 2023 17:42:15 +0100 Subject: [PATCH] [GUI] PyQt6 compatibility --- src/silx/gui/widgets/RangeSlider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):