PDA

View Full Version : Graph (nodes, edges) Drawing in Qt



Sabbir
19th October 2012, 11:45
I need to visualize a schematic transit map of a rail network in real time using C++ (Qt/Linux). To do that first I need to read the real coordinates of track elements (tracks, crossing, signals, stations etc) from main memory and then dynamically generate the corresponding graph elements over a Cartesian plane (like the parallel lines in the example picture below). So far I was unable to implement this graph in Qt (As far as I know there is no Qt library for graph drawing!!) :crying:

Is Qt is good for this kind of problem?

How can I read memory objects within Qt framework?

It would be highly appreciated if someone could refer me few example links/repos of similar (graph, network, circuit, mesh) problems done with Qt.

8329

wysota
19th October 2012, 12:02
How can I read memory objects within Qt framework?
What exactly do you consider a "memory object"?


It would be highly appreciated if someone could refer me few example links/repos of similar (graph, network, circuit, mesh) problems done with Qt.

Such graph as in your attachment should easily be created with Graphics View. If you need help with the graph itself, any C++ graphing library should work. Then it's just a matter of visualizing the graph in Qt.

Sintegrial
20th February 2018, 07:50
look at qvge.
https://sourceforge.net/projects/qvge/