Library for Graph support

  • Hi,
    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.

  • Hi
    So you want to create a tool like GEPHI ( As per my knowledge, there is no such inbuilt tool. But you can create one from scratch in Qt, its possible.

  • @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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.