How to connect two QGraphicsItem by drawing line between them (using mouse)
问题 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 this question but there wasn't a provision to let users connect the two points. (Also, note that item must be movable) Here is a demonstration of how I want it to be: I want the connection between the two ellipses as shown above Can I know how this can be done? 回答1: While the solution proposed by JacksonPro is fine, I'd like to provide a slightly different