--- a/eric7/Snapshot/SnapshotPreview.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/Snapshot/SnapshotPreview.py Sun May 16 20:07:24 2021 +0200 @@ -7,8 +7,8 @@ Module implementing the snapshot preview label. """ -from PyQt5.QtCore import pyqtSignal, QPoint, Qt -from PyQt5.QtWidgets import QLabel, QApplication +from PyQt6.QtCore import pyqtSignal, QPoint, Qt +from PyQt6.QtWidgets import QLabel, QApplication class SnapshotPreview(QLabel): @@ -56,7 +56,7 @@ @param evt mouse button press event (QMouseEvent) """ if evt.button() == Qt.MouseButton.LeftButton: - self.__mouseClickPoint = evt.pos() + self.__mouseClickPoint = evt.position().toPoint() def mouseReleaseEvent(self, evt): """ @@ -74,7 +74,7 @@ """ if ( self.__mouseClickPoint != QPoint(0, 0) and - (evt.pos() - self.__mouseClickPoint).manhattanLength() > + (evt.position().toPoint() - self.__mouseClickPoint).manhattanLength() > QApplication.startDragDistance() ): self.__mouseClickPoint = QPoint(0, 0)