title: How to use itemChange from QGraphicsItem in Qt
body: <p>I have custom ellipse <code>QGraphicsItem</code> class and custom line class. On scene I have let's say two ellipses and connection made between them by a line. Ellipse has a pointer to this line and is movable. My problem is that I dont know how to use <code>itemChange()</code> from <code>QGraphicsItem</code>. I want to make connection which will be changing with ellipse movement. So I want to use <code>itemChange()</code> method to change line coordinates in a way that it always will be in center of ellipse. I read documentation from <a href="http://doc.qt.io/qt-4.8/qgraphicsitem.html#itemChange" rel="nofollow">QGraphicsItem::itemChange()</a> but I don't know how to use it in my case.</p>