Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt Quick or QWidget in a tight memory constraint Android device?

    QML and Qt Quick
    3
    8
    274
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sunita Marshal
      Sunita Marshal last edited by Sunita Marshal

      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?

      J.Hilk 1 Reply Last reply Reply Quote 0
      • J.Hilk
        J.Hilk Moderators @Sunita Marshal last edited by

        @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.

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply Reply Quote 0
        • Sunita Marshal
          Sunita Marshal last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • Sunita Marshal
            Sunita Marshal last edited by

            Any real data of memory consumption on Android with QML.....???

            KroMignon J.Hilk 2 Replies Last reply Reply Quote 0
            • KroMignon
              KroMignon @Sunita Marshal last edited by

              @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.

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              Sunita Marshal 1 Reply Last reply Reply Quote 1
              • J.Hilk
                J.Hilk Moderators @Sunita Marshal last edited by

                @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.

                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

                Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                Sunita Marshal 1 Reply Last reply Reply Quote 2
                • Sunita Marshal
                  Sunita Marshal @KroMignon last edited by

                  @KroMignon Thanks for sharing your QML experience.

                  1 Reply Last reply Reply Quote 0
                  • Sunita Marshal
                    Sunita Marshal @J.Hilk last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post