Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mouse Operation and Painting in Qt.
HYSuperman last edited by
I think you all know about the hardware description language (HDL) like Verilog. This kind of language decribe the hardware like the logical circuits.
The structure of these kind of language is not very abstract like the structure of software languages.
For example, if I want to decribe a pipeline in verilog, the pipeline is called top and is made of three stages: A, B and C.
I can use four files: one for top and the other three for three stages to describe this pipeline.
If I want to connect the stages, say if I want the output of A connected to the input of B, I just name a wire called AB and write it in the top file to connect these two stages.
Actually it's a little bit complicated and boring to do the "wiring" jobs when I write this pipeline.
SO. I want to make the connection visualized using Qt and finally make it a plugin of Qt Creator.
Basically I want to make a module visualized (just a rectangle and it has a lot of inputs and outputs) and I can use my mouse to connect two modules by dragging a line between them. And after this operation it will generate the relevant code.
But right now I don't now where to start, which library should I use? Is there anybody who has the relevant experience?
Thank you in advance.
Sounds like a good candidate for either the Graphics View framework or QML. The examples from the respective modules should help you get started.
Hope it helps