Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- polygon = QPolygonF([list of PointF points])
- poly = QtGui.QGraphicsPolygonItem(polygon)
- scene.addItem(poly)
- //Suppose I get a new vertices from the MousePressEvent , how do I go about it?
- polygon.replace(0 , QPointF(new vertices)
- poly.update()
- #Which is not working.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement