Unsolved Does using QML affect program performance?
-
Compared to using c++.
Does using QML affect program performance? -
No, because I do the heavy lifting in C++.
-
@SuperJarvisCN said in Does using QML affect program performance?:
Does using QML affect program performance?
It depends how you plan to use QML!
It is much more easier to create attractive user interfaces with QML than in plain C++.
But QML is a Javascript based language, so there is an overhead because of the Javascript-Engine.If you only use QML only for the HMI part and C++ for the "business-logic", this could be a powerful combination with acceptable performances.
-
@SuperJarvisCN Just a note: there is a QML compiler. It was commercial in the past, but as far as I know it is available now with open source license also (not 100% sure though).
-
@jsulm said in Does using QML affect program performance?:
It was commercial in the past, but as far as I know it is available now with open source license also (not 100% sure though).
Yes, since Qt 5.11 Qt Quick Compiler is also available for Open Source version, according to wiki
But QML still based on Javascript and even if it is quicker after compilation, there are still no variable check, etc.