What’s the app size on mobile
-
I remember 5 years ago when I tried a simple qml app on android the apk size was 25 MB and almost 100 mb after installing.
I am wondering now if the size is reduced especially the installation size or it’s still the same?
Qt/QML is a powerful framework but for mobile the size is huge
-
I remember 5 years ago when I tried a simple qml app on android the apk size was 25 MB and almost 100 mb after installing.
I am wondering now if the size is reduced especially the installation size or it’s still the same?
Qt/QML is a powerful framework but for mobile the size is huge
-
T Tahar has marked this topic as solved on
-
Hello @sierdzio,
The size of Qt/QML applications on mobile devices can vary depending on the complexity of the app and the assets included. However, there have been advancements in Qt, particularly with Qt 6.6, which focuses on scalability and efficiency. Best practices suggest using Qt Quick Controls and Qt Quick Layouts to design UIs that are scalable across different devices and screen configurations. This can help in optimizing the app size.
While I couldn’t find specific current statistics on the average app size for Qt/QML on mobile, it’s reasonable to assume that with these improvements, there might be a reduction in the overall size of the applications compared to 5 years ago. Developers are encouraged to follow best practices, such as using QML Live Reload for testing and optimizing assets, to manage the application size effectively.
-
Hello @sierdzio,
The size of Qt/QML applications on mobile devices can vary depending on the complexity of the app and the assets included. However, there have been advancements in Qt, particularly with Qt 6.6, which focuses on scalability and efficiency. Best practices suggest using Qt Quick Controls and Qt Quick Layouts to design UIs that are scalable across different devices and screen configurations. This can help in optimizing the app size.
While I couldn’t find specific current statistics on the average app size for Qt/QML on mobile, it’s reasonable to assume that with these improvements, there might be a reduction in the overall size of the applications compared to 5 years ago. Developers are encouraged to follow best practices, such as using QML Live Reload for testing and optimizing assets, to manage the application size effectively.
@jessewallick I'm sorry but your reply does not really provide any data (neither does mine ;) ).
it’s reasonable to assume
No. Qt still has to ship with QtCore, QtGui, QtQuick, QtQml and all the other libraries - they make up the bulk of final APK data. I would not expect any changes in Controls and Layouts to make big changes.
But in general it is pointless to argue about this. This is easy to check. Simply compile some Qt app for Android and see how much space it takes. I don't have my computer set up for Android right now so I won't do it, but perhaps somebody else here will.
-
@sierdzio
Do you think a static build would result in a smaller apk and an installation size?