Skip to content

Commit

Permalink
Merge pull request #2 from trasta298/fix/cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
trasta298 authored Nov 12, 2024
2 parents c3275e1 + d49bcfe commit 27e2ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def paintEvent(self, event):
qp.drawRect(self.rect())

if not self.begin.isNull() and not self.end.isNull():
QtWidgets.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.ArrowCursor))
QtWidgets.QApplication.restoreOverrideCursor()
rect = QtCore.QRect(self.begin, self.end).normalized()

qp.setCompositionMode(QtGui.QPainter.CompositionMode.CompositionMode_Clear)
Expand Down

0 comments on commit 27e2ea5

Please sign in to comment.