Skip to content

Commit 12dc315

Browse files
authored
Merge pull request #4003 from silx-kit/vasole-patch-1
[GUI] PyQt6 compatibility
2 parents e1f33d5 + 7a949b7 commit 12dc315

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/silx/gui/widgets/RangeSlider.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
__authors__ = ["D. Naudet", "T. Vincent"]
3131
__license__ = "MIT"
32-
__date__ = "03/11/2023"
32+
__date__ = "14/12/2023"
3333

3434

3535
import numpy as numpy
@@ -514,7 +514,8 @@ def _mouseEventPosition(self, event):
514514
position = event.pos()
515515
else:
516516
# qt-6 returns QPointF
517-
position = event.position()
517+
# convert it to QPoint
518+
position = event.position().toPoint()
518519
return position
519520

520521
def mousePressEvent(self, event):

0 commit comments

Comments
 (0)