Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Library for Graph support
MatheusIH last edited by
I'm very new to Qt, I've been reading its documentation and trying to create a GUI for graph relations. Basically I want to create nodes and lines with push and drag functionalities, so that the lines connect with the nodes and when I drag a node, its lines are dragged with it. Is there any tool within Qt that might help me with that?
If not, I'd be very thankful if anyone could point me in the right direction.
Bittoo last edited by
So you want to create a tool like GEPHI (https://gephi.org/). As per my knowledge, there is no such inbuilt tool. But you can create one from scratch in Qt, its possible.
Pablo J. Rogina last edited by
@MatheusIH I guess there isn't a graph feature (in the sense of graph theory) built in with Qt as far as I know.
For a graphical way of modeling "nodes and edges" I'd take a look at the SCXML editor, part of Qt Creator.
Even when the SCXML editor is supposed to work with state charts, you'll see that a state could be equivalent to a node, and a transition be equivalent to an edge. With that you should have a pretty good idea of how to drag components, how to connect them, etc.
Once you can draw a graph, I guess you need backend support for representing such structure, even for saving and retrieving it later. Having working with in-house graph libraries back in the old days of university I cannot recommend one now, but you may want to take a look at some current libraries here.