Using qt to make an interface to modify ns3 parameters
-
I need to use qt to make a script code that can modify some parameters in ns3, a c/c++ application project, such as modifying the number of nodes in
first.cc(a script in ns3) or something like that, and then I can run the first.cc file by directly clicking the run button on qt interfaces. Has anyone done this? Would this be better implemented in VScode, qtcreator or some other editor? Thanks. -
Hi,
What is ns3 ?
How are you interacting with it from Qt ? -
@SGaist
1.NS3 is mainly used to simulate computer networks, and can simulate real-world networks of various types and sizes on a single computer.It is an open source project written in C++。
2.I'm actually not quite sure exactly how I'm going to get the two of them to interact. I was thinking it could be run via VScode (since I can run them separately in VScode) or via qt calls to the terminal (since ns3 can also be run directly via the terminal). But some of the compilation files and such would be different between the two of them? So I can't run them both together without problems. -
I still dont understand what you are trying to do. Do you want to use NS3 and Qt together in one project (using NS3's source code)? Or do you want to keep NS3 untouched, use it as software and build your own Qt app upon that?!
What parameters do you want to modify? Write to a file? -
Have you read about NS3 and Qt integration already?
- https://www.nsnam.org/docs/tutorial/singlehtml/#overview
- https://forum.qt.io/topic/30865/integrating-ns3-with-qt
- https://www.nsnam.org/wiki/HOWTO_configure_QtCreator_with_ns-3
You could link your Qt and the NS3 project and build your own GUI that uses NS3 (I have no experience regarding this, but I think it might work)