ickby wrote: ↑Wed Jun 21, 2017 7:47 pm
It actually used qt4 and was based on qml. I stopped working on this as qt5 was needed to do real interfaces in qml, and that was not available back than in FreeCAD.
But the code is horrible, I suck at JavaScript
Hey, I loved that layout and always wondered what happened to it. but I'm curious as I don't understand anything about coding yet, but since I have an interest in learning python, and you said that you code this with javascript, my question is, 1. is it possible to code the interface in python? 2. what is the difference between javascript and python, and I though that everything in freecad was coded in python.
ickby wrote: ↑Wed Jun 21, 2017 7:47 pm
It actually used qt4 and was based on qml. I stopped working on this as qt5 was needed to do real interfaces in qml, and that was not available back than in FreeCAD.
But the code is horrible, I suck at JavaScript
Hey, I loved that layout and always wondered what happened to it. but I'm curious as I don't understand anything about coding yet, but since I have an interest in learning python, and you said that you code this with javascript, my question is, 1. is it possible to code the interface in python? 2. what is the difference between javascript and python, and I though that everything in freecad was coded in python.
ickby wrote: ↑Wed Jun 21, 2017 7:47 pm
It actually used qt4 and was based on qml. I stopped working on this as qt5 was needed to do real interfaces in qml, and that was not available back than in FreeCAD.
But the code is horrible, I suck at JavaScript
Hey, I loved that layout and always wondered what happened to it. but I'm curious as I don't understand anything about coding yet, but since I have an interest in learning python, and you said that you code this with javascript, my question is, 1. is it possible to code the interface in python? 2. what is the difference between javascript and python, and I though that everything in freecad was coded in python.
You can still do UI with Python if you want, I'd say this is better for replacing C++ and .ui (XML) files.
hehe cool, but i still don't understand the difference between language selection, why do you do UI in Javascript if you can do it in python forexample?
and why is python better for replacing C++ etc?
ickby wrote: ↑Wed Jun 21, 2017 7:47 pm
It actually used qt4 and was based on qml. I stopped working on this as qt5 was needed to do real interfaces in qml, and that was not available back than in FreeCAD.
But the code is horrible, I suck at JavaScript
Hey, I loved that layout and always wondered what happened to it. but I'm curious as I don't understand anything about coding yet, but since I have an interest in learning python, and you said that you code this with javascript, my question is, 1. is it possible to code the interface in python? 2. what is the difference between javascript and python, and I though that everything in freecad was coded in python.
You can still do UI with Python if you want, I'd say this is better for replacing C++ and .ui (XML) files.
hehe cool, but i still don't understand the difference between language selection, why do you do UI in Javascript if you can do it in python forexample?
and why is python better for replacing C++ etc?
The advantage is separation of concerns. QML is a lightweight declarative language (check out the examples and compare it to a .ui file in the source code). You can declare the structure of your UI in a simple, easy-to-read format and then separate your heavyweight application logic (written in C++ or Python). So, comparing to web's HTML+CSS+JS, QML is like HTML+CSS and then C++/Python is like JS (although you could do scripting with JS, inside the QML, if you wanted to.)
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.