GUI for electric circuit simulator. General conceptions
-
Dear colleagues,
I am a beginner in QT development (as well as in programming). I would like to develop an application that simulates the work of electric circuits. The general idea:
I have panel with elements (resistor, capacitor ect.). I drag and drop element to the frame and link it by wires. After that I give an input signal and simulate an output signal.I have no problems with simulations, all Python codes are written, but I have problems with understanding of some GUI features realization. I would be grateful if you advice me some solutions.
- What widget should I use for "work field", where I put my elements?
- How to create an object (image of electric element), which I can place at work field?
- How to make wires (In my case it's only horizontal lines with auxiliary length defined by user when he place it on work field)
- Is it possible to realize this interface using only QtDesigner?
Thank you for attention, I would glad to get your advice.
Sincerely, Egor -
Hi and welcome to devnet,
For one to three, please take a look at the Graphics View framework.
For number four, no you won't be able to do everything with Designer. Place the main components, yes, but you will have various custom items that you will have to code by hand.