title: How to connect two QGraphicsItem by drawing line between them (using mouse)
body: <p>I have some custom items in the scene. I would like to allow the user to connect the two items using the mouse. I checked an answer in <a href="https://stackoverflow.com/questions/32192607/how-to-use-itemchange-from-qgraphicsitem-in-qt/32198716#32198716">this</a> question but there wasn't a provision to let users connect the two points. (Also, note that item must be movable)</p>
  <p>Here is a demonstration of how I want it to be:</p>
  <p><a href="https://i.stack.imgur.com/pnVid.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pnVid.gif" alt="enter image description here" /></a></p>
  <p>I want the connection between the two ellipses as shown above</p>
  <p>Can I know how this can be done?</p>