Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Connect 2 custom movable QGraphicsItems with an auto adjustable multiline



  • Hello there ;)

    Right now I am doing a custom project and using DIagram Scene as a reference. That's all coming ok but I need to connect my custom QGraphicsItems in a special way.
    So here how it should look like:
    alt text
    Move left item a little bit on top and right
    alt text
    So as you can see lines stay only vertical and horizontal position. Is it possible to achieve such a behavior with
    QGraphicsPathItem or should I use something else?

    Also I want to implement a feature to show points from where connection could be possible. So if a user clicks this point and drags it to the point on the other item a line will be drawn.
    It should look like this example from Visio:alt text