Qt Quick or QWidget in a tight memory constraint Android device?
-
Hi,
I want to write a simple grocery app using Qt v5.15.2.
The target device is Android but with just a mere 1GB ram.
So in terms of memory footprint and performance, should I go Qt Quick route or QWidgets? -
Hi,
I want to write a simple grocery app using Qt v5.15.2.
The target device is Android but with just a mere 1GB ram.
So in terms of memory footprint and performance, should I go Qt Quick route or QWidgets?@Sunita-Marshal
hi,
I have a very extensive QML based application (Desktop) that never exceeds 100mb of RAM and most of that are loaded and displayed images.I would be more concerned about actually disc space.
-
@J-Hilk said in Qt Quick or QWidget in a tight memory constraint Android device?:
I have a very extensive QML based application (Desktop) that never exceeds 100mb of RAM
That's really great!
But on Android, things are so different.
-
Any real data of memory consumption on Android with QML.....???
-
Any real data of memory consumption on Android with QML.....???
@Sunita-Marshal said in Qt Quick or QWidget in a tight memory constraint Android device?:
Any real data of memory consumption on Android with QML.....???
Every App is different, it depends on Android version and Qt Version.
I have create a little QML Android App which is using Bluetooth and Camera with Qt 5.7, on Android 7.1 device it use about 100MB~120MB.
But it is a quiet old Qt and Android version, maybe with Qt 5.12/5.15 it will use less memory because of QML optimizations. -
Any real data of memory consumption on Android with QML.....???
@Sunita-Marshal Qt applications in general have a rather big front up memory consumption, that is due to all the (Qt)libraries that are loaded on startup, anything you do at application level will be (for a long time) smaller.
If you're really concerned about memory, you will have to compile qt yourself and configure it so, that you really only enable what you use in your application.
-
@Sunita-Marshal said in Qt Quick or QWidget in a tight memory constraint Android device?:
Any real data of memory consumption on Android with QML.....???
Every App is different, it depends on Android version and Qt Version.
I have create a little QML Android App which is using Bluetooth and Camera with Qt 5.7, on Android 7.1 device it use about 100MB~120MB.
But it is a quiet old Qt and Android version, maybe with Qt 5.12/5.15 it will use less memory because of QML optimizations.@KroMignon Thanks for sharing your QML experience.
-
@Sunita-Marshal Qt applications in general have a rather big front up memory consumption, that is due to all the (Qt)libraries that are loaded on startup, anything you do at application level will be (for a long time) smaller.
If you're really concerned about memory, you will have to compile qt yourself and configure it so, that you really only enable what you use in your application.
@J-Hilk Yes, I know Qt apps are so memory hungry but I need an advice on choice of new QML or old QWidgets - what will take less memory? I've no plan to make my Android app any fancy or themed - just simple plain controls will be included, and some SQLite database access.