-1

Why does there appear to be a selection issue regarding QGraphicsPAthItem's that are bezier paths? In the image below you can see my cursor is no where close to the line but it shows as being in a hover state turn the line White.

The more curvy the line, the more inaccurate the hover/selecting is. How can i fix this? The red X indicates the location of my cursor.

enter image description here

JokerMartini
  • 5,674
  • 9
  • 83
  • 193

1 Answers1

0

https://stackoverflow.com/a/32435391/3156300

qp = QPainterPathStroker()
qp.setWidth(12)
qp.setCapStyle(Qt.SquareCap)
return qp.createStroke(self.path())
JokerMartini
  • 5,674
  • 9
  • 83
  • 193