Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Graph (nodes, edges) Drawing in Qt
Forum Updated to NodeBB v4.3 + New Features

Graph (nodes, edges) Drawing in Qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 5.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sabbir
    wrote on last edited by
    #1

    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!!)

    It would be highly appreciated if someone could refer me few example links/repos of similar (graph, network, circuit, mesh) solutions (other than Qt elastic-nodes example).

    !http://www.opentrack.ch/opentrack/images/OpenTrack.Stadelhofen.gif(Sample graph)!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      "QGraphicsView":http://qt-project.org/doc/qt-4.8/qgraphicsview.html is definitely the API you are looking for in Qt.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sabbir
        wrote on last edited by
        #3

        Thanks rcari :-) Actually I am looking for a closely related example solution to move forward (even if it's a circuit board drawing example).

        1 Reply Last reply
        0
        • U Offline
          U Offline
          utcenter
          wrote on last edited by
          #4

          I don't think there is an example you can directly use, examples are simple and serve one purpose, and that is to show you how things are done so you can do them yourself. Anyway, learning QGraphicsView is not all that hard, and when you learn it it won't be hard to implement the functionality you need.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved