Advertisement
LocalBoy

Untitled

Jan 22nd, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. polygon = QPolygonF([list of PointF points])
  2. poly = QtGui.QGraphicsPolygonItem(polygon)
  3. scene.addItem(poly)
  4.  
  5. //Suppose I get a new vertices from the MousePressEvent , how do I go about it?
  6.  
  7. polygon.replace(0 , QPointF(new vertices)
  8. poly.update()
  9.  
  10. #Which is not working.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement