Moderator: agryson
The way I did implement it not, it needed some changes in the c++ code. However, triplus did some good work which back then was not possible with qt4. So I have no clue how far he can get. Maybe now it is possible to achieve all I did with python only, just in annother way of implementing it.Can this be done in python aswell?
Ok is there some type of visual software that allows you to create such user interface graphically instead of programmatically?ickby wrote: ↑Fri Jan 11, 2019 7:15 amThe way I did implement it not, it needed some changes in the c++ code. However, triplus did some good work which back then was not possible with qt4. So I have no clue how far he can get. Maybe now it is possible to achieve all I did with python only, just in annother way of implementing it.Can this be done in python aswell?
QDesigner (on windows I think it's part of QCreator, on linux you can get it standalone)
I used qt's QML language to build the UI, except of curse the panels, wich have been the default freecad ones. But the layout engine, the dragging etc, was done in qml:
Thanks for the startup tip, Does it allow me to create these kinds of windows aswell?yorik wrote: ↑Wed Jan 16, 2019 1:31 pmBascially you create a new widget or dialog (dialogs are meant to be standalone, while widgets are meant to be inserted in another panel), then you add controls to it (push buttons, texts or images (labels), line edit fields, etc...). You have several tools like groups, layouts and separators to help organize things better.
So for example you would want to create a new window tool. You would think of what information the user needs to provide, then you would create a dialog that makes it clear for the user how to proceed.
The next step is to make the code that gets executed when the user presses buttons, etc... But that's for later.