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. Creating nodes and connecting them with a link(C++)
Forum Updated to NodeBB v4.3 + New Features

Creating nodes and connecting them with a link(C++)

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 789 Views 3 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.
  • D Offline
    D Offline
    Dancun Ogenda
    wrote on last edited by
    #1

    Hei I am new but I have got a grasp of C++ Qt. I am looking for some help, on how to create nodes, which might be routers in my case, and then create a link that can connect two or more of the routers. I have been trying this but to no avail. Any help from someone good with this will be appreciated. Thanks

    Pablo J. RoginaP 1 Reply Last reply
    0
    • D Dancun Ogenda

      Hei I am new but I have got a grasp of C++ Qt. I am looking for some help, on how to create nodes, which might be routers in my case, and then create a link that can connect two or more of the routers. I have been trying this but to no avail. Any help from someone good with this will be appreciated. Thanks

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Dancun-Ogenda you may want to take a look at the inners of the SCXML Editor from Qt Creator. In that case you have states (nodes) and transitions (links), pretty much what you're looking for...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • D Offline
        D Offline
        Dancun Ogenda
        wrote on last edited by
        #3

        But is there a way of doing it in code and not just using XML. In this case I want to write all that detail using C++ and not through XML

        Pablo J. RoginaP Pl45m4P 2 Replies Last reply
        0
        • D Dancun Ogenda

          But is there a way of doing it in code and not just using XML. In this case I want to write all that detail using C++ and not through XML

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @Dancun-Ogenda you didn't follow... I'm suggesting that you look at the source code of the SCXML editor, to see how they are creating the nodes and attaching the links in a visual way.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • D Dancun Ogenda

            But is there a way of doing it in code and not just using XML. In this case I want to write all that detail using C++ and not through XML

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #5

            @Dancun-Ogenda

            This is also a good example to look at:

            https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            D 1 Reply Last reply
            2
            • D Offline
              D Offline
              Dancun Ogenda
              wrote on last edited by
              #6

              Okei thanks, I misunderstood.I will check that out

              1 Reply Last reply
              0
              • Pl45m4P Pl45m4

                @Dancun-Ogenda

                This is also a good example to look at:

                https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html

                D Offline
                D Offline
                Dancun Ogenda
                wrote on last edited by
                #7

                @Pl45m4 thanks a lot for the reference

                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