Solved How do you use ScrollHandDrag without the "hand" cursor?
-
The hand cursor is too fat and is blocking a control point when you go to press it. I'd like to see the arrow at that point.
def set_select_mode(self, en): if en: self.setDragMode(self.RubberBandDrag) else: self.setCursor(QCursor(Qt.ArrowCursor)) self.setDragMode(self.ScrollHandDrag)
Doesn't work, it still has the hand cursor.
-
Figured it out.
def hoverEnterEvent(self, event): self.update_connector_shape(event.pos()) self.setCursor(QCursor(Qt.ArrowCursor)) super().hoverEnterEvent(event)
You set the cursor in the hover event of the item containing the control points. Then it changes to arrow and goes back to hand upon hover leaving, on its own.