Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nodal graph in Qt for Programmable Flow Charts

Tags:

qt

qt4

pyqt

pyqt4

I was wondering if there was a nice way to allow users to create nodal graphs (with restrictions) as with LabView.

Something like this:

Example

I have seen http://www.pyqtgraph.org/, which seems to have something similar, and I do intend to use PyQt as my base (though I do not mind linking in C++ code), but it doesn't quite have the look and feel I wanted.

Any pointers to the right direction would be great.

like image 418
Cenoc Avatar asked Nov 18 '14 04:11

Cenoc


1 Answers

There is a Diagram Scene Example which uses the Graphics View framework to make flowchart diagrams. It is an application in which you can add flowchart shapes and text and connect the shapes by arrows. The shapes, arrows, and text can be given different colors, and it is possible to change the font, style, and underline of the text.

You can take a look at the code and see how to create custom graphics items and handle mouse events and movement of items. Then change the look and behavior as you like.

Check another diagram editor here.

like image 81
Nejat Avatar answered Nov 10 '22 01:11

Nejat