Answer the question
In order to leave comments, you need to log in
How to increase the performance of Qt Quick and QML?
Hello. I choose which technology to use when writing a cross-platform desktop application. The choice fell on Qt, but I don't know what to use - Qt Widgets or Qt Quick.
Qt Widgets. Pros: excellent startup and operation speed. Cons: technology beginning to become obsolete, inconvenient format.
QtQuick. Pros: fairly new technology, just a wonderful QML format , I want to use it. Cons: slow startup speed and the same window redrawing. Running an empty project and trying to resize the window hurts my eyes.
What to choose? Is it possible to improve the performance of a Qt Quick project?
Answer the question
In order to leave comments, you need to log in
You can increase the startup speed by purchasing a paid version with a compiler from Digia. I didn’t see any problems with redrawing, maybe the issue is in your video driver / environment?
In general, the choice depends on the tasks and type of application, because the scope of Widgets and Quick does not really intersect so much.
You can improve the performance of a project on Qt Quick / QML. It is difficult to give a single recipe for improvement, because. it depends on many factors that are not clear from the question. Starting from the environment and the problem being solved, and the version of Qt. Some of the old QML performance issues in Qt have already been resolved and advice on them will no longer be relevant.
General advice:
- do not overload QML with logic (QML is only responsible for the presentation, everything else must be done in C ++)
- do not use heavy images (a megabyte image will slow down) and incorrect size (resources will be spent on recalculation)
- do not use large intersection different colored areas (it's better to put the finished image than to draw it in layers with different transparency, gradients, etc.)
- ....
For example , you don’t need to do this - of course there will be problems at the start.
On what system and with what parameters does it start? To be honest, it looks strange, because. QML works fine both on mobile devices and on embeded, but here I understand desktop ...
If you need standard desktop applications with standard elements, then Qt Widget will be more convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question