Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick or QWidget in a tight memory constraint Android device?

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
8 Posts 3 Posters 634 Views
  • 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 MarshalS Offline
    Sunita MarshalS Offline
    Sunita Marshal
    wrote on last edited by Sunita Marshal
    #1

    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.HilkJ 1 Reply Last reply
    0
    • Sunita MarshalS 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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @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


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

      1 Reply Last reply
      0
      • Sunita MarshalS Offline
        Sunita MarshalS Offline
        Sunita Marshal
        wrote on last edited by
        #3

        @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
        0
        • Sunita MarshalS Offline
          Sunita MarshalS Offline
          Sunita Marshal
          wrote on last edited by
          #4

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

          KroMignonK J.HilkJ 2 Replies Last reply
          0
          • Sunita MarshalS Sunita Marshal

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

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on last edited by
            #5

            @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 MarshalS 1 Reply Last reply
            1
            • Sunita MarshalS Sunita Marshal

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

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @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


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

              Sunita MarshalS 1 Reply Last reply
              2
              • KroMignonK KroMignon

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

                Sunita MarshalS Offline
                Sunita MarshalS Offline
                Sunita Marshal
                wrote on last edited by
                #7

                @KroMignon Thanks for sharing your QML experience.

                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @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 MarshalS Offline
                  Sunita MarshalS Offline
                  Sunita Marshal
                  wrote on last edited by
                  #8

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

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved