PDA

View Full Version : qt implementation of noodle drawing



drmacro
7th December 2017, 16:22
I'm wondering if anyone knows of an implementation or library of "noodles" connection diagrams in qt.

I say "noodle", but, I'm not sure what the official name for it is. A diagram connected with what I call noodles is like this:

12715

Basically it allows the display of input/output nodes and connecting them with splined lines.

Regards,
Mac

ChrisW67
11th December 2017, 22:57
I think this should be possible with QGraphicsScene and QGraphicsView. The Elastic Nodes and Diagram Scene examples (http://doc.qt.io/qt-5/examples-graphicsview.html) are probably useful here. Cubic spline lines can be generated with QPainterPath and added to the scene.