How can we improve the start time of Qml application?
-
The main window Qml that we load initially consist of stacked widget layout along with many other Qml instances present in the application. The visibility of these instances gets changed on basis of certain UI events triggred by the user.
This initial Qml window takes quite long time (~5-6 seconds). Kindly suggest if there are any alternative to reduce the start time of the application. -
- move any and all logic to c++ only do gui stuff in qml
- Use Loaders and only load what you're currently want to show
- Use Dynamic/asynch loading for loaders and Images
-
@J-Hilk said in How can we improve the start time of Qml application?:
- move any and all logic to c++ only do gui stuff in qml
- Use Loaders and only load what you're currently want to show
- Use Dynamic/asynch loading for loaders and Images
- Use Creator's QML profiler to determine where time is spent.
-
@jeremy_k said in How can we improve the start time of Qml application?:
@J-Hilk said in How can we improve the start time of Qml application?:
- move any and all logic to c++ only do gui stuff in qml
- Use Loaders and only load what you're currently want to show
- Use Dynamic/asynch loading for loaders and Images
- Use Creator's QML profiler to determine where time is spent.
- Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html
-
@JKSH said in How can we improve the start time of Qml application?:
@jeremy_k said in How can we improve the start time of Qml application?:
@J-Hilk said in How can we improve the start time of Qml application?:
- move any and all logic to c++ only do gui stuff in qml
- Use Loaders and only load what you're currently want to show
- Use Dynamic/asynch loading for loaders and Images
- Use Creator's QML profiler to determine where time is spent.
- Use the Qt Quick compiler to compile your QML/JS code to C++: https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html
- Port to QSkinny!