Unsolved Creating nodes and connecting them with a link(C++)
-
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
-
@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...
-
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
-
@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.
-
This is also a good example to look at:
https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
-
Okei thanks, I misunderstood.I will check that out
-
@Pl45m4 thanks a lot for the reference