Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Creating editable UI and linking it with C/C++ library fucntions
rockon last edited by
I want to create a UI, through which the user can add nodes and link them by drawing lines thus creating a tree. Once user is done with drawing the tree, I should be able to use the data for my computation. User should be able to delete any nodes at a later point too.
- After drawing tree, the data could be saved in file with adjacent node info format.
- When user clicks "Find Shortest Path" in the gui my algorithm can compute it from the saved data.
- The Algorithm function then saves the Shortest Path info which could be picked up by the UI to display it.
This is just an example,I can also write a wrapper over my library as the interface between GUI and library.
I want to write my algorithms in C or C++ and link my library to the GUI for input/Output. The efficiency of my library is paramount and GUI comes second.
I got a lead that QT is the best way to do this. Right now i am using ubuntu and installed QT3 interface designer. So i just wanted to clarify a few things and get some pointers to where to start before i dig my heels in to QT3.
- Can i code my functions in C++ and link them to QT3.
- From my requirements can i have suggestions on how to go about doing this.
- Is their really a need for a separate C++ library or should i be writing my functions in QT framework only using C++.
I am totally new to QT so any help is appreciated.
Alicemirror last edited by
for may experience, I can confirm you that QT is the best way to do this. To answer to your three questions:
What I can advice about is that you should consider the option to work with QT 4.x against QT3, because you simplify your work and your life a lot.
Using this method, another thing that is simplified in your work if the separation you need between algorithms code and user interface. In this context, feel free to create libraries and / or code program only independently by the needs of the User Interface: QT-Quick can work in all the two choices you can do.